This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Finding out why a route is different between versions

0

I have a route between generated by osrm between 2 locations. The route changed when updating from OSRM 4.9.O to 5.3.3.

I wanted to compare the response from:

http://localhost:5000/route/v1/driving/4.325217,50.901073;4.422702,51.191058?          steps=true&alternatives=false&annotations=true

However the datasources , weight and speed attributes are missing.

Is there a better way to find out why a route changed?

asked 16 Apr '20, 11:01

pro_kiwi's gravatar image

pro_kiwi
21113
accept rate: 0%

edited 16 Apr '20, 11:03


One Answer:

2

OSRM has significantly changed between 4.9.0 and 5.3.3. In particular, the "profiles" which assign different speeds/weightings to each section of road have changed. This means that the newer version will calculate different journey times for each road, and may therefore choose a different route because it now reckons it's faster.

You can see changes made to the profiles here: https://github.com/Project-OSRM/osrm-backend/commits/master/profiles

answered 16 Apr '20, 11:05

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

Source code available on GitHub .