organicmaps / organicmaps

🍃 Organic Maps is a free Android & iOS offline maps app for travelers, tourists, hikers, and cyclists. It uses crowd-sourced OpenStreetMap data and is developed with love by MapsWithMe (MapsMe) founders and our community. No ads, no tracking, no data collection, no crapware. Please donate to support the development!
https://organicmaps.app
Apache License 2.0
8.89k stars 874 forks source link

add penalty for raised kerbs when bicycle routing #8596

Open RedAuburn opened 4 days ago

RedAuburn commented 4 days ago

currently a (theoretical) way marked with bicycle=yes, that has a node with barrier=kerb+kerb=raised would be considered a good path to route down. Kerbs should have a penalty.

RedAuburn commented 4 days ago

from table: https://wiki.openstreetmap.org/wiki/Key:kerb ideally in replaced_tags.txt:

kerb=raised,yes = barrier-kerb-high kerb=lowered, flush, no = barrier-kerb-low

these types would also be essential for wheelchair routing, if we do that in future

RedAuburn commented 4 days ago

@vng it's not yet possible to set weights for nodes, right? only yes/no/destination access?

afaik other engines just have a list of weights linked to how annoying it is, eg.

name weight
great 1
okay 2
mildly_annoying 3
very_annoying 4
extremely_annoying 5
almost_never_worth_it 6

so barrier-cycle_barrier would use extremely_annoying/weight 5 instead of being considered as access=no, for the odd case where it'd be significantly more effort to go around.