-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigate to nearest point in track #27
Comments
It is very expensive to find the nearest point of a large point list if the nearest point could be located in every direction around your local position. You would need to limit this search operation to a small number of points. I guess you don't want to use the "next Navigation Point"? The only smart way of reducing the time to wait for finding the next point would be a configurable limit of points after and before the next navigation point. For geotagging it was a bit less difficult because finding the nearest timestamp was a one dimensional task and binary search was great for that: locus-addon-tasker/app/src/main/java/falcosc/locus/addon/tasker/GeotagPhotosService.java Line 312 in 1433b01
With 2 dimensions, I don't know, you can't even sort the points because of having 2 dimensions. This would be a great question for someone, how did study such kind problems. |
Hi So, when navigating a track in Locus tapping on the navigation arrow allows to then choose "Nearest point" or "Recalculate". The Locus/tasker plugin allows to automate "Recalculate" by executing Action Task "Navigation/Recalculate". I would like there to be also an Action Task in the Locus/tasker plugin for "Navigation/Nearest point" to automate this also. Currently I'm forced as a workaround to use the Tasker/AutoInput plugin to press the buttons in Locus but its not ideal. |
Jumping forward is more easy, but you are right, there is no way to tell locus to execute the existing action. But maybe it is easy to integrate in the action tasks because it is an existing function. |
Yes, I'm hoping the Locus team could add it without much effort. Not sure how to take that forward - if I raise as an Idea it probably wouldn't get many votes. Or should I raise it on the forum first ? |
Hi,
Currently the Locus API and Locus/Tasker plugin provide Action Tasks "Navigation/Recalculate" (current track) and "Navigate To" (a new target point). However more useful for me would be "Navigate/Nearest point" (current track). When navigating a track if I decide to shortcut/bypass part of the track then Locus continues to target the section of the track bypassed - I think it will not jump ahead more than 100 track points, so need then to use the "Navigate/Nearest point" action.
Is there any way to get this added ? If I raise an Idea in Locus myself I'm doubtful there would ever be enough API users to get enough votes.
Thanks
Alan
The text was updated successfully, but these errors were encountered: