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

Very steep streets should still be preferred to lifting your bike up a staircase #120

Open graue opened 1 year ago

graue commented 1 year ago

Pushing a bike on the sidewalk is easier than lifting it, so very steep streets should still be preferred to steps.

This route from Embarcadero Station to a one-block street called Calhoun Terrace is recommending lifting my bike up the Filbert Steps.

It is probably doing it because the only non-stair way up involves one block that's a 16%/17% grade according to HillMapper: Union from Kearny to Montgomery.

If I'm reading this right, a grade of 16% or higher has a penalty of REACH_DESTINATION, the highest value and the same value assigned to staircases, so it wouldn't be preferred over "schlep your bike up this enormous staircase." https://github.com/bikehopper/graphhopper/blob/28201f7567699dc56c7e9c8ae927ba176c15ed62/core/src/main/java/com/graphhopper/routing/util/Bike2WeightFlagEncoder.java#L130