osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.67k stars 1.02k forks source link

Increase penalty of primary roads for pedestrian profile #20217

Open Guylby opened 4 months ago

Guylby commented 4 months ago

Routing engine

Routing Profile

Osmand default pedestrian profile

Start and end points

Start=43.286500,6.133614 End=43.284459,6.136816

Actual route

When navigating between this two points with a pedestrian profile, Osmand offline routing makes you cross a primary road which is both dangerous and not ideal (there's a pedestrian underpass with just a small detour). I've checked the OSM data and there's no pedestrian crossings at this intersection. There is no signalisation saying pedestrians are not allowed. https://test.osmand.net/map/navigate/?start=43.286500,6.133614&end=43.284459,6.136816&profile=pedestrian#18/43.28562/6.13466

Screenshot 2024-07-01 at 16-37-34 OsmAnd Map

Expected route

With the same parameters, OSRM yields a safer and better itinerary, using the pedestrian underpass: https://map.project-osrm.org/?z=18&center=43.285447%2C6.135682&loc=43.286383%2C6.133767&loc=43.284442%2C6.136867&hl=en&alt=0&srv=2

Wouldn't it be better to increase the penalty of using primary roads to provide safer itineraries? Currently, other than creating a custom routing profile, there doesn't seem to be a way to discourages Osmand from using them.

Screenshot 2024-07-01 at 16-37-21 OpenStreetMap Routing with Open Source Routing Machine

Maps you used (online or offline)

Your Environment

OsmAnd Version: 4.7.17
Android version: Android 13
Device model: Sony Xperia 10 III

Anything else?

No response

vshcherb commented 4 months ago

Seems tricky cause it doesn't start on footway