-
Notifications
You must be signed in to change notification settings - Fork 66
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
"voice hint generation" after "Load Track as Route" #356
Comments
Remark: origin track: Track after upload: |
... and the problem not only occurs after "Load Track as Route": it seems, the brouter itself some times fails... (set turnInstructionMode= OsmandStyle for testing) |
Yes, as Nrenner I think we have a minor bug in the Brouter! |
Thanks for reporting and investigating. I also created an issue for BRouter: brouter#282 Voice hint for route point on junction node. But I guess we still need to avoid via points on junction nodes in the client by moving the simplified points a bit. |
I think also, "faking" the intermediate RTEPT´s by nearly 2 meters could be a workarround... Note: (Strange route, but I had such a situation in my route, as I had defined an intermediate point not exactly at the jonction) Regards |
My proposal for fixing this in the client would be to move the route points determined by simplification a bit along the original track (forward or backward?). I think Turf along could be used for that. This might also give a better hint to the router on which way to take, as with a route point on a junction node it is not clear in cases where two ways with equal cost lead to it. @printpagestopdf what do you think? |
Hello Norbert, Thank for your work on this subject! My changes in the module RouteLoaderConverter.js: This simple change leads to unexpected results (some errors desapper, new errors appear). I think, the change you suggest could / should be a workarround.in most of the situations. Any response from Arndt to the issue you opened (#282) ? For me, it would be nice to have a solution, but it has not top priority.. I said "nice to have" for this issue: my use case is, the following: Regards |
A further possible change: |
Hello, I got the change running (replace the intermediate WP´s with the middle point between the WP and his previous WP in the original track) I installed the change in my test instance on the brouter server, can any body start new tests? |
Hello, I tested with different GPX files and discovered 2 situations with unexpected results: Case 1- the GPX file contain a track AND a route (as example generated by the brouter with turninstructionmode=3) Case 2- the GPX file contains a lot of duplicates (attached, an example, a GPX file created with garmin base camp) In the new test version of "load track as route" I delete the duplicate before "turf.cleanCoords" and... 179 trackPoint´s remain after processing!!! Regards |
This is a bit a superfluous question.
As mentioned in #329 (comment) #68 might change the way Export works, so I wouldn't want to have #332 before #68 is done, which is the most requested feature by far. I started looking into that and try not to get distracted again. I pinged printpagestopdf above, and would wait at least two weeks, to see if he is interested and has time/energy to look into this issue, as he is the author of this feature and probably has test cases to better judge any impact of changes than me. |
Norbert, |
Ohh, I am very sorry, I overlooked this thread, because I am in the moment deeply involved in another Project and don't have free resources. Reading over the thread I am in doubt that I could be very helpful for the decision.
Regards
edit (nrenner): remove email reply citation
|
@printpagestopdf thanks for the feedback |
I probably won't merge it until #68 is done. It might still make sense though, as a pull request really helps with seeing what the changes are and commenting on those. And I guess your implementation might need some further work before it is ready to be integrated. |
My concern with this was, that moving the via point to the middle of a longer straight way with only two nodes might be too much and lead the route to go back and take a shortcut that the track didn't take. So for example, when the via point of this original route is moved back too far, the route takes the straight shortcut: But that seems to be only a theoretical consideration, I haven't found an actual example for this. When exporting above original route and loading again as route, the via point for the next corner will still force the route along the track.
That's a separate bug then. When there already is a route in the file, we should use those route points, instead of guessing them from the track.
That probably was turf#1255 cleanCoords() omits valid coords.. It's fixed in brouter-web since 15 Jan, when I updated to the new Turf version. |
Norbert, About the "middle" point:
So, I think, the new calculated point for the routing remains ON the track / way ... I my assumption is not true, the pull request should be cancelled.. PS:
|
No worries, as I wrote I think it's fine and is probably just theoretical. And yes, it wouldn't apply to normal GPS recordings. But we can't know if a track isn't already simplified. Simplification with a low tolerance only removes redundant intermediate points on straight lines and leaves the overall geometry intact, so still perfectly navigatable, but longer distances between points. Also, exporting a route and later reloading the track as route is a valid use case (bookmarks are better of course), then you have only points for OSM nodes, which might mean only two points for a straight way. That is what I meant, but again, probably not a real issue.
I agree with those. |
As a solution is in view, I close now this issue! Ess bee |
test_origin_trackonly.gpx.txt
test_origin_osmandStyle.gpx.txt
test_afteruploaded_track_osmandStyle.gpx.txt
Hello,
I am using the Brouter-web to create gpx-tracks to be used in Osmand and set for that the parameter "turnInstructionMode" of the profile to Osmand-style (=3).
By a first generation of a track the voice hints are generated as expected.
But, if I try later to change the track using the "Load Track as Route" function, the voice hints are sometimes in error (left and right are inverted).
remark:
By the "Load Track as Route" I only upload gpx-tracks (result of export with turnInstructionMode=0), not the gpx track+route as exported with turnInstructionMode=3. (upload of a gpx track+route loads the tour twice!)
I attach some gpx files I created with Brouter-web using the standard "Trekking" profile:
test_origin_trackonly.gpx ==> turnInstructionMode=0 (using standard "Trekking" profile)
test_origin_osmandStyle ==> turnInstructionMode=3 (only this change was made and applied in the "Trekking" profile)
test_afteruploaded_track_osmandStyle ==> exported after "load Track as Route" of the above "text_origin_trackonly" & turnInstructionMode=3
Here the third voice hint (1944 meter after start) is set to "right" instead "left".
The feature "Load Track as Route" is very good, my bikefriends and myself like and use it:
Am I doing something wrong?
Or is a modification/work arround possible?
Regards
EssBee
The text was updated successfully, but these errors were encountered: