-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Route calculation is dependant on route changes in unrelated area #1429
Comments
Please supply links from the [Generate Link] link so we can have a link example of these last two. Thanks. |
Here you go: |
Here's a minimal case from the original report. By moving the intermediate marker slightly, the route changes in unexpected ways. I loaded a 10x10km OSM extract for this region of the Netherlands into a local OSRM install, and I can't reproduce the problem based on HEAD from master. If I place markers in the same spots, the routing does not jump around like it does on http://map.project-osrm.org/. |
While I can't reproduce it in master, it is reproducable in develop as of 61dca4a |
Looks like this behaviour appeared in 11c6713 |
Reversing the route often does not produce the same path, even when there are no one-way streets involved. Examples above demonstrate this behaviour. |
Seems related to #1474 Can also reproduce this with develop. |
@danpat just double checked: Reverting that commit fixes this problem. Awesome work tracking that down! Going to cross verify with the other issues that have cropped up. |
the branch fix/looping contains a failing cucumber test. it's a small extract of a location in copenhagen. to run: there are two wrong cases: |
Just reverted 11c6713 on |
I just built and tested develop and it fixed this case: |
My example above is working correctly now on map.project-osrm.org. |
This was fixed by #1503 |
I apologise for the maybe cryptic subject. I am noticing a change in the route calculation in unrelated areas when you change the parameters of the route in other areas.
Consider these two routes (screenshots are also attached):
http://www.osrm.at/bDs
http://www.osrm.at/bDt
is the route that osrm calculates without intermediate points and takes a shortest path in the village Lierop. For 2) I added an intermediate point in an area that is not related to the route in the village (it is not on a track that should be affected by the new point) and the new route calculates a different route in the village Lierop which is about 500 meter longer.
Looking at the speed information from the point of change, 1) is about 340 meters @ 30 km/h, 2) is about 145 m @ 50 km/h and 680 m @ 30 km/h. This can never be a faster route.
Why does the route calculation change when I put an intermediate point in a non-related area?
The text was updated successfully, but these errors were encountered: