Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.26k stars 3.31k forks source link

`sidewalk:left` and `sidewalk:right` seem to be ignored #6229

Open Dimitar5555 opened 2 years ago

Dimitar5555 commented 2 years ago

Example route: https://www.openstreetmap.org/directions?engine=fossgis_osrm_foot&route=42.70713%2C23.29988%3B42.70772%2C23.29813#map=19/42.70743/23.29901

The road on the west has sidewalk:left=no and sidewalk:right=separate but OSRM seems to ignore them and routes pedestrians on the road itself.

kaligrafy commented 2 years ago

Normally, if you want foot to force route on the sidewalk, you need to use foot=use_sidepath on the road segment but osrm does not support this tag yet. You need to add it to the foot profile blacklist for this to work:

access_tag_blacklist = Set { 'no', 'agricultural', 'forestry', 'customers', 'private', 'delivery', 'use_sidepath' }

However, make sure that all your sidewalks are correclty connected to each other and to other footpaths, otherwise you will get incorrect results.

github-actions[bot] commented 1 month ago

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

kaligrafy commented 1 month ago

Should the main foot profile blacklist use_sidepath and add it as a destination (restricted) access only?

DennisOSRM commented 1 month ago

That's an interesting idea. I wonder if there are cases where this could be perceived as obviously wrong.

kaligrafy commented 1 month ago

That is what I am doing in my custom profiles and it works well. It allows access to a house or POI even if there is a missing connection between the POI/house and the sidewalk.

DennisOSRM commented 1 month ago

Ok, on the list of things to look at to get a better feel for. 😉