-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Difference in table distance versus "web" distance #6017
Comments
The default OSRM car profile will be different from the one used in the web service. Try processing a local graph with the same profile as the web and see if you still observe discrepancies: https://github.com/fossgis-routing-server/routing-chef/blob/43ad483497b85c883f61bbb27333bfb45b922a4d/cookbooks/osrm/recipes/default.rb#L215 |
Hey, @mjjbell , thanks for the quick answer, but I am not quite sure how to do that. When processing the osm.pbf file I simply followed the instructions here and used: docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-extract -p /opt/car.lua /data/berlin-latest.osm.pbf (but replacing I realize this uses the default profile, but I don't know how to the use the web one. I looked into this doc but I could not find it. |
Try this to use the web profile (replacing with your file), :
The following processing steps remain the same. |
Just tried this out on sudeste Local table request
So this looks pretty good now, probably within the expected level of accuracy given OSM changes and #5316 |
@mjjbell, thank you a lot for your time and help. It turns out that my osm.pdf file was from last month, and with the update from 18 hours ago I got the same results as your last comment, regardless of the car profile. This last point is interesting: by using # Forcing the 4a0ebb9974a806fb9df652ed75b79694aa038f1a commit in the `cbf-routing-profiles` repo
docker run -t -v "${PWD}:/data" -v "${PWD}/cbf-routing-profiles:/profile" osrm/osrm-backend osrm-extract -p /profile/car.lua /data/sudeste-latest.osm.pbf or # Using the default car.profile
docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-extract -p /opt/car.lua /data/sudeste-latest.osm.pbf I actually got the same results as long as the data files were the latest. I am going to close this issue then. Thank you again. |
yes the car profile is actually pretty close. foot and cycle differ more I think |
I found some issues mentioning possible (slight) differences between the table and route services results (like this one), but my question is with respect to the results obtained with the web version.
Consider two sources (in lat, lng formats):
and the following destination:
When calling the table service
curl "http://localhost:5000/table/v1/driving/-46.71666829999999,-23.6389477;-46.731617,-23.6306127;-46.8051986694336,-23.63680458068848?sources=0;1&destinations=2&annotations=duration,distance"
I get as result
but when computing these values from the web version (source 1 and source 2) I get the results in the next figure:
In summary:
So while the durations are basically the same, the distances not only differ in magnitude by more than 1k, but there is a disagreement in which source is actually the closest one to the destination (this is honestly the biggest problem for me).
Do you know the cause of this difference or how I can alleviate it? I found this old issue explaining the problem but it got no updates since then.
For reference, I am using the latest data from Geofabrik and running the server with the
mld
algorithm.The text was updated successfully, but these errors were encountered: