Project-OSRM / osrm-backend

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

evaluation of Tag cycleway:left/right/both:oneway=no #6451

Open Langlaeufer opened 1 year ago

Langlaeufer commented 1 year ago

I tried to find the correct tagging of a oneway-road with a one-side bi-directional cycletrack.

Example: http://map.project-osrm.org/?z=17&center=52.422952%2C9.450999&loc=52.423383%2C9.444262&loc=52.424067%2C9.451488&hl=en&alt=0&srv=1

Tagging: highway=primary oneway=yes cycleway:right=track cycleway:right:oneway=no

I found out that I have to explicitly add oneway:bicycle=no to enable routing against oneway direction of the carriageway. This does not fit into the new tagging of cycleway parameters within the namespace cycleway: cycleway:*:oneway=no is not interpreted

Langlaeufer commented 1 year ago

To see the expected route please invert the direction.

matkoniecz commented 1 year ago

see also https://github.com/graphhopper/graphhopper/issues/2694

Langlaeufer commented 1 year ago

OSM documentation for cycleway:right:oneway: https://wiki.openstreetmap.org/wiki/Key:cycleway:right:oneway

Langlaeufer commented 1 year ago

after adding oneway:bicycle=no the cost for backward are also 2 min and routing is fixed.

nevertheless I would unterdstand oneway:bicycle=no as cycling on the carriageway against oneway is allowed. (an this is how it is visualized in cyclosm)

Therefore the following tags should be considered cycleway:right:oneway=no cycleway:left:oneway=no cycleway:both:oneway=no cycleway:oneway=no

Langlaeufer commented 1 year ago

OSM Discussion https://community.openstreetmap.org/t/how-to-tag-a-oneside-both-direction-cycleway-along-a-oneway-street-without-seperate-line/5192