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

Prefer less steep bike routes #81

Closed graue closed 1 year ago

graue commented 2 years ago

The below route (among other unrelated issues) puts you on a 21% grade for one block of Ridgewood, even though a <10% grade path is possible and only slightly longer:

image

Suggestion: The router should prefer avoiding 12-15% grades, strongly prefer avoiding 16-20% grades, and only do >20% if necessary to reach destination.

(Just a starting point for discussion; open to different approaches that might turn out to be easier to implement, or tweaking this if it's too strict and creates very circuitous routes, etc.)

graue commented 2 years ago

My understanding is that the router currently takes into account how elevation affects speed -- so it may be thinking that even with the steep grade, going directly up that 21% grade block is like 30 seconds faster than going around -- but it doesn't factor in that going around may be much more comfortable because the extremely steep grade is specifically exhausting.

hcourt commented 1 year ago

Closed by #101