Replies: 1 comment 2 replies
-
|
HI @grillop, for minimizing the battery drain of GPSLogger. There is one area which can be improved. At the moment GPSLogger sends the whole saved GPX file of the day line per line to reitti. So lets assume you let it log ever 10 seconds. At 01:00 of the day it will send 360 lines, one by one, At 02:00 it sends 720 ... and at 10:00 it sends 3600. Everytime it creates a connection, pushes the line, accepts and handles the response and so on. One way to reduce this, is to let it send/upload the gpx/zip somewhere maybe via sftp or owncloud/nextcloud. Whatever works. (unfortunately not reitti atm. I wanted to add it here mendhak/gpslogger#1255 but did not had time) For the other point, i never heard of Valhalla but it looks kinda interesting. But this is only based on the idea they propose on the documentation. From my experience in the last year of developing reitti is, that there are a lot of algorithms for a lot of problems available but most of them either are to accurate, aka. they are expensive to calculate or do not fit the dynamic nature of the data. For example. if i look at https://valhalla.github.io/valhalla/meili/overview/ which seems to handle the map matching (aligning points to roads for example) i immediatly would have some questions like:
A solution which could be working with a little bit of tweaking in reitti could be: At the moment we will ignored a already saved gpx points. And this is determined by the timestamp in combination with the user. So you can only have one point per timestamp. So if valhalla moves an existing point because it hase more information on the second run this will not be reflected in reitti because the moved location will be ignored for an existing point.
No worries, I first like the input because I can´t think about or know everything which is out there. Second, sometimes our users have so great ideas that I slap my head why I did not think about a suggested solution earlier. So every input is welcome here and I respect your time in thinking and writing this down. Together, this will make reitti a better solution for everyone. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I preface this with some context.
As the title says, this kind of started with my partner not wishing to use GPSLogger on her phone because of battery, and to be honest, not really giving much of a hoot about this stuff. But, I wanted to pursue minimizing battery and showing interesting and accurate timelines and routes on the Reitti map.
So, AI and searches indicated that I could use a side technology to get "road snapping" integrated into Reitti to help with this. Well, I blindly took that as gospel without really looking more closely for confirmation.
So, I used "Valhalla" and built and have running a Valhalla instance that covers several countries and parts of the US that I live and travel in. And, :) not really understanding what the heck that really give me ..
But .. then I'm told, oh - you really can't use Reitti with it. Best you could do is pull data out of Reitti database, feed it into Valhalla (in some way, haven't done it, not sure I will) and it will result in "more accurate information"
Well, that wasn't what I was expecting. I was informed that Reitti has its own logic for doing routing, of course! (I told you I know nothing about what is really happening under the hood)
So, if you got this far - maybe one question. Is there a place for a Valhalla instance anywhere in the process?
And then, I thought - well, what if there were an intermediary service that took traffic from GPSLogger, somehow ran it through Valhalla (maybe with a small cache of points) and then forwarded them to Reitti. Well ... just spitballing ...
Last question, does the above make any sense at all? I will totally admit that this is the bored engineer in me, probably going down some wrong dead end road etc. But, I thought I'd post this here - because if I play with this for my own sanity - I need to decide how I might build this. Based on whether it would even work, whether it is even useful - might influence what technology I use and how much of a "toy" it might become vs something more.
sorry, for just splatting out thoughts here - but, I have a thick skin ... and if there is any suggestions or input, it would be appreciated. I can handle "what are you talking about, that's brain dead" or "why did you post this?"
thanks
-p
Beta Was this translation helpful? Give feedback.
All reactions