osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

OSRM shuns a particular OSM way

Open jengelh opened this issue 3 years ago • 4 comments

Observed

https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=51.48984%2C9.87727%3B51.49023%2C9.87690#map=18/51.49032/9.87817

1

Expected to see instead

https://www.openstreetmap.org/directions?engine=graphhopper_car&route=51.48984%2C9.87727%3B51.49023%2C9.87690#map=18/51.49027/9.87735

2

There is something about OSM way 498828745 that OSRM doesn't like, but I can't tell what.

jengelh avatar Sep 13 '22 18:09 jengelh

This is what OSRM is seeing

https://map.project-osrm.org/debug/car.html#17.04/51.49074/9.87768 image

The roads from/to that way are not accessible, I believe it's due to the proposed tag. The profile treats it as not routable.

So similar to #6320, the end input location is on a one-way road with no exit, which indicates something is not quite right. OSRM therefore snaps to somewhere accessible instead, hence the long route around.

Removing the proposed tag from the adjacent ways should fix this problem (assuming the roads are now complete).

mjjbell avatar Sep 13 '22 19:09 mjjbell

Found https://github.com/Project-OSRM/osrm-backend/issues/6141 I can understand when OSRM decides to ignore ways with construction=*, but doing the same for proposed=* is just quite wrong.

Sure, you don't want to route over highway=proposed proposed=primary.

But highway=primary proposed(:highway)=secondary c/would indicate a change in classification, and is not supposed to negatively affect routing today.

jengelh avatar Sep 13 '22 21:09 jengelh

I see. It could be that the usage has changed since this was added to the profile, and now this is worth revisiting. I'll run an overpass query to understand the current usage.

mjjbell avatar Sep 14 '22 08:09 mjjbell

Forgot to follow-up. I ran a query to see what would be exposed if the profile included proposed tags that are missing highway=proposed or any reference to construction.

https://overpass-turbo.eu/s/1m7f

Broadly, the categories are:

  • Ways where it appears they've forgotten to remove the proposed tag (example)
  • In-progress ways that are currently tagged as inaccessible to normal traffic (example)
  • Proposals to change highway type for already accessible ways (similar to the issue above).

Overall it looks like strictly following the proposed tag guidelines will lead to better routing and won't have major downsides.

In any case, the profile used by the OpenStreetMap website is in a separate repo, so making a change to the default repo behaviour doesn't mean it will make it onto the site. You might want to make a request over there too.

mjjbell avatar Sep 22 '22 20:09 mjjbell

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jul 08 '24 20:07 github-actions[bot]