Loading
Network error

Agorakit : Users & developers

events from the past to show up in map

Started by coremoore in Agorakit : Users & developers March 28, 2025 5:05 AM

I'm trying out agorakit, and it seems really suited for my community. But i would really like past calendar events to show up in the map. I've tried to find some setting to control that, but could not find it.
If someone could point me to the code, maybe i have a chance of meddlig with it?

Also having files (especially images) geolocated either manually or automatic would be a great feature.

Thx a lot,

March 28, 2025 9:28 AM

That's a reasonable & useful request imho. Currently it's not possible but it could. If you know php/laravel, we are open to PR's :-)

The code for the action overview page is here : https://github.com/agorakit/agorakit/blob/main/app/Http/Controllers/ActionController.php

And the code for showing actions in a group is here : https://github.com/agorakit/agorakit/blob/main/app/Http/Controllers/GroupActionController.php

As for maps : the overview code is here : https://github.com/agorakit/agorakit/blob/main/app/Http/Controllers/MapController.php

The map in groups is here :  https://github.com/agorakit/agorakit/blob/main/app/Http/Controllers/GroupMapController.php


Geolocating files has never been asked before, I don't have strong opinion on that, I'd say probably not but am open to other's input.


plusone
March 28, 2025 10:17 AM

I know some php, but would have to research taravel. It's been years since i have been coding, i'm rusty and also was never very hardcore!
But i'm very thankful for your answer and will definitely look into it, but results i will not promise :)

I will just underline the usefulness for the "past events visibility" in my case:
I travel a lot and do different stuff i.e. skiing climbing diving and culture. Mostly with family and friends. And our travels involves lots of planning ahead, some RT planning and coordination, and a lot of memory lane activity after whatever we've been doing. So Agorakit seems to me like the perfect substitute for what i was planning in my programming days, but never had the skill, stamina or time to get working

Regarding geolocation of img; this could be relatively easy by hooking up the exif-data (if such exists). BTW is it possible to give a LatLong reference in the location field? If so, which format?

Well i'm on my way to Github to get some overview of the whole situation!

March 28, 2025 11:48 AM

i removed from GroupMapController.php this:
where(''stop', '>=', Carbon::now()->subDays(1))->
and that did the job.
Next mission to make a toggle-switch for past events (actions).
Probably a lot more effort needed to do that
;)

March 29, 2025 1:29 PM

Cool! It's indeed a quick fix. Maybe at some point a way to limit how far in the past would be needed, for groups with a lot of past events. Or some kind of pagination?

You've read everything in this discussion