-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Routing from exact node location #5073
Comments
@ZsoltMedgyesi-Itineris OSRM uses the nearest OSM way segment to the input location as a starting point of the route. If the input location is exactly at an intersection node and distances from the input point to ways segments are 0 then the first allowed segment in will be used. The order of segments is fixed during generation of the R-tree for segments lookup and can not be changed at the query phase. A possible solution can be in adding a small delta to the input coordinate in the required direction. |
@oxidase Thanks for the clarification. The problem is, that in the given application waypoints can be 1-10 minutes apart. Which means the direction of the delta in the required way cannot be defined reliably. Trying in multiple directions probably would be a solution, but not an elegant/efficient one. May you have any other suggestion, or should we close this issue? |
@ZsoltMedgyesi-Itineris sorry, i don't know other "easy" solution without OSRM modifications. The correct fix would be to use multiple source/target nodes that have the same distances to the input location that sounds like an easy fix, but the devil is in the detail:
So almost all parts of The current issue duplicates #2167, but the previous issue was about synthetic feature tests and the current one presents a real use case. So I think it is ok to keep it open and close #2167 instead. |
Also related is #4465, where the fix is basically the same. |
This issue seems to be stale. It will be closed in 30 days if no further activity occurs. |
The problem is , when i try routing from a position, which is an exact location of an intersection node, not all the ways from that node are taken into account (in the example case, the link).
Like such:

Notes:
The text was updated successfully, but these errors were encountered: