Hello, I’m looking for a good tool to selfhost some kind of location history similar to Google’s one. To have some data I can test the tools with, I merged every of my bicylce and hiking tours to one GPX file containing 7000km worth of travel. Then I tried this tool, but it really lags with so much data and every move and every zoom takes some seconds to load. Next I tried the “Phonetrack” app on my nextcloud instance, but this as well lags and I have to activate every track manually and they are color coded. I really like the connection between the phonetrack app on my Android and the nextcloud app, but I am afraid that I’ll eventually run into the same performance problem when I gathered enough data. I’ve seen that theres OwnTracks, but it seems you have to set up your own server and I don’t want to pay extra next to my nextcloud subscription. Do you know of any kind of location history tool I can use that can handle big amounts of data?

  • palitu@lemmy.perthchat.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Unfortunately there are no fantastic options. But it is a three part problem.

    1. Server to collect, store and serve the location data.

    2. App to send the data to the server

    3. ui to visualise the data.

    There are some larger collection servers, but nothing that provided the data back in a way that i wanted. I currently use a custom script some created, whic provides a number of API endpoints. I will rustle up the link.

    There are a number of apps, I use phonetrack. Defaults to next cloud formants but is easily editable.

    The UI is where a lot of this fall down. I have phone always recording location, so tracks is no good for me, I wanted to use something like a heat map. The script I talked about includes a simple heatmap using leaflet and openstreetmaps. This fits my ise case much better, but is still not ideal.

    I ultimately want to pre process the data to reduce the size of the data set that gets sent to client, to reduce the lag time. Good luck though, as it is a fun and challenging problem!

    (I’ll upload some screenshots when off mobile)

    https://github.com/gue-ni/location_tracker

    • Rogue1633@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I agree, the first two problems are rather easy to solve with phonetrack or any other of the tracking apps like µlogger, Owntracks, Traccar, etc. and nextcloud or the backend you provided. What is the reason that the simple heatmap is not ideal? Does it also lag or are you looking for filters functionality, etc.? The data pre processing must be challenging cause thats the part really seperating the self hosted solutions to Google’s one. If one could pre process the data on a nextcloud server and could render it on a map without significant lags, that would be really cool. Maybe I’ll try to work on that in the future when I got more advanced in programming.

      • palitu@lemmy.perthchat.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Yeah, i think my data set is around 14mb when i load it all (and it loads all points to the browser). that is a bit of a loading lag, but once loaded it is ok.

        The other issues is when you zoom out, you cannot pan around. you have to do clever scrolling (zoom) in and out to get to where you want.

        I think it should be reasonabley easy to do the server side updates, but i cannot javscript front end to save my life!

  • Scott@lem.free.as
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I’m using PhoneTrack with NextCloud for 24x7 tracking just like Google History.

    You just start an activity and just leave it going. It syncs to NextCloud “live”.

    Battery drain is minimal (much like, say, WireGuard VPN).

    • Rogue1633@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      The tracking part is great, but I think I’ll eventually run into perfomance problems when the files get too big. How long has it been running now/how big is you gpx file? And do you just use one single session or eventually start a new one?