bikehopper / graphhopper

Open source routing engine for OpenStreetMap. Use it as Java library or standalone web server.
https://www.graphhopper.com/open-source/
Apache License 2.0
3 stars 0 forks source link

Mishandling of cycleway:left:oneway=-1? #119

Closed graue closed 1 year ago

graue commented 1 year ago

We're avoiding going northbound on Scott between Oak and Fell, specifically the part at the very north end of the block where motor vehicles are not allowed to travel south:

image

It's clearly avoiding this little part:

image

Southbound works:

image

The way at the very north end is tagged

oneway=yes
oneway:bicycle=no
cycleway:right=lane
cycleway:left=lane
cycleway:left:oneway=-1

These tags seem correct. The bug might be that we treat cycleway:left:oneway=-1 and cycleway:right:oneway=-1 as equivalent to oneway:bicycle=-1. (See isBackwardOneway().) The latter means that bicycles can only travel opposite the OSM way direction on the entire road.

graue commented 1 year ago

In a possibly related issue, going contraflow on Battery Street is being avoided: https://bikehopper.org/route/Montgomery%20Street%20Station%2C%20One%20Post%20Plaza%2C%2091405@-122.40105019019208,37.7895225/to/Calhoun%20Terrace%2C%2094113@-122.4035842,37.8011083