-
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
Different distance/duration on local engine #3370
Comments
http://map.project-osrm.org is our demo server - it runs on a r3.4xlarge AWS EC2 box and cycles in 1/ the latest osrm code pulling from master (think: nightly builds) and 2/ a new OSM planet with the latest changesets applied. * For OSM extracts Geofabrik is great - http://www.geofabrik.de/data/download.html Also check the documentation and beware of latitude / longitude mixups, which might explain different responses ;) Please report back if this helps you getting started! * unless things break then there might be some days in between until we fix the issue |
Hi Daniel, Thank you for your help. I got the latest pbf file and no difference. I just realized there is lua file for car, foot and bicycle which are used on extract pbf file. I am using default lua files. Is it possible that you are using different lua files on demo server? and this is the reason of differences? regards, |
@Robatjazi The demo server uses Run:
and you should get roughly the same results as the demo server. |
@Robatjazi You also didn't mention which version of OSRM you are using - the demo server runs the latest |
Thanks for your reply danpat. I got the latest release binaries (on windows) and used the latest profiles. There are a lot examples like this. Regards, |
@Robatjazi The demo server gives me the below response for this query (using your coordinates If you replace "router.project-osrm.org" with "localhost:5000" and run this query locally, do you get the same response as below? I just did a quick test locally (on macOS) and I get the same results as the demo server. If you're entering coordinates into the In addition - if you have If all that looks good, can you please paste a full log of all the commands you ran to perform the route, and the exact URL you're hitting to get your response? {
"code":"Ok",
"routes":[
{
"legs":[
{
"steps":[
],
"summary":"",
"duration":1515.3,
"distance":18246.9
}
],
"duration":1515.3,
"distance":18246.9
}
],
"waypoints":[
{
"hint":"p7-Whf6_loUAAAAAbwIAALEBAAAAAAAAAAAAAPTjawPf5gAAVXM8-VSSMQPidDz5UpIxAwAAAQHEwdXo",
"name":"",
"location":[
-113.478827,
53.580372
]
}
]
} |
@danpat i could reproduce it locally, it is tie breaking between two alternative pathes. Here is demo server response for https://router.project-osrm.org/route/v1/driving/-113.47843,53.58037;-113.5845262,53.6524966?overview=full&geometries=geojson
and local master http://127.0.0.1:5000/route/v1/driving/-113.47843,53.58037;-113.5845262,53.6524966?overview=full&alternatives=false&geometries=geojson
Paths are different https://gist.github.com/oxidase/f053c1972555d60109d8a0aa21d16124 |
Thank you danpat. I tried with alternatives=true and I am getting 2 rioutes. I guedd by default osrm demo GUI just shows the rout with minimum duration. I tries same request on osrm demo and my local service and the results are: local server: I cannot explain why there is difference. Any Idea? Regards, |
For debugging this, we can ignore the alternative route - it is in no way guaranteed to be the "second fastest route". My results match @oxidase. I'm using using {
"waypoints":[
{
"location":[
-113.478827,
53.580372
],
"hint":"_icJgFUoCYAAAAAAbwIAALEBAAAAAAAAAAAAAMJfBQCDAAAAVXM8-VSSMQPidDz5UpIxAwAAAQGfXHZh",
"name":""
},
{
"location":[
-113.584572,
53.652465
],
"hint":"s-gDgL3qA4BAzgAAHwAAACkAAADrAAAAAAAAAAOCAgCDAAAARNY6-fGrMgNy1jr5EKwyAwMAAQGfXHZh",
"name":"Kingsway Drive"
}
],
"routes":[
{
"distance":16433.5,
"duration":1502.1,
"legs":[
{
"distance":16433.5,
"steps":[
],
"duration":1502.1,
"summary":""
}
]
}
],
"code":"Ok"
} This differs from the demo server, but the demo server is running code that's a few days old, and a map that's a few days old - either could've changed. @Robatjazi Your results do not line up with anything we're seeing. Can you please provide some more explicit details of your setup? "latest" is not sufficient, because things are changing every day. Can you please furnish us with:
These details are important - the problem could be that you're running on outdated code/profiles (despite thinking you're on "latest"), but we won't know without verification. It's possible that there's a Windows vs Linux/OSX difference, but I would like to eliminate the more likely scenario of user error first. |
I got osrm from: I got pbf file for Alberta from: |
Any updates here? Can you give it a try with the latest 5.6 release and make sure to use the bundled profile? |
I have same problem. in my case - |
I seem to be having the same issue. The demo server gives the correct distance of 1.2 miles, but our local docker service is giving 4.2 miles. I've completed redownloaded and updated both the data and the docker image+container and I'm getting the same result. I'm running the latest osrm/osrm-backend docker image (54e48d7fc5a7a7886c3e30e097587c1d126d55544b2d889f92b11b6b81846def).
|
@SystemParadox Did you compare the actual route geometry being returned? If the distance is that different, then a different route is being selected. You'd have to look at the details to understand why. |
It looks to be something to do with the bridge. On the demo it's returning the correct route, using the B3233. From the distance, it appears that my local installation is avoiding this bridge and instead going all the way around and using the A39 instead. There is a weight limit on the bridge, but I'm using the Thanks. |
osrm serves debug tiles on which you can see the speed/weight/turn restrictions. You can see the tiles using https://github.com/Project-OSRM/osrm-frontend and then navigate to the debug files via one of the buttons on the bottom left. Make sure to change the backend on your frontend following this: hope that helps :) |
Thanks that's really helpful! I'm not entirely sure what it's supposed to do with bridges, but it appears that the B3233 bridge is missing? The A39 shows coloured like all the other roads, but the B3233 is just missing. Unfortunately the live demo isn't showing the debug information so I can't compare it. The data from geofabrick.de appears to be up to date. I tried loading it in JSOM, but it seems to be in a format which isn't suitable for editing (missing changeset numbers, among other things). How can I sensibly inspect the osm/pbf data to see if the bridge exists there? If it doesn't, how do I find out where it went missing? Where does geofabrik.de get their data from? |
I don’t know which profile exactly is running on the demo server but in any case, your problem should hopefully be fixed soon with this PR😁 |
Stale. |
Hi All,
I am pretty new on using OSRM. I am using it on my local machine and using alberta-latest.osrm. I got it on web. My issue is that I am getting different distance/duration than values when use online OSRM (http://map.project-osrm.org). I am just wondering of to is different map data that I am using.
Which data is used on http://map.project-osrm.org? and how can I get correct map street data for Canada?
Thank you in advanced.
The text was updated successfully, but these errors were encountered: