Open graue opened 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
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