osmandapp / OsmAnd

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

Bicycle routing: Strange detour #20863

Closed scaidermern closed 1 week ago

scaidermern commented 1 month ago

Routing engine

Routing Profile

Bicycle, balanced, no live data

Start and end points

Kenmare, Ireland

Start: 51.88060, -9.58480 End: 51.87994, -9.58320

https://osmand.net/map?start=51.880600%2C-9.584804&end=51.879944%2C-9.583196&profile=bicycle#18/51.880665/-9.583893

Actual route

Expected route

Turning right and going straight through (works with a via point, works with shortest route, doesn't work in balanced mode, works on OsmAnd website even in balanced mode).

Maps you used (online or offline)

Your Environment

OsmAnd Version: 4.8.6
Android version: 10
Device model: Galaxy S9

Anything else?

Not sure if this is a bug or expected behavior in balanced mode. Looks very suspicious / strange, nobody would choose this route.

yuriiurshuliak commented 1 month ago

The bug was not reproduced. To reproduce , I created navigation using the provided coordinates: start at 51.88060, -9.58480, and finish at 51.87994, -9.58320, with the bicycle profile and tried both Balanced and Shorter riding styles.

The navigation was built correctly without any detours, both in the app and in the web version. I recommend updating your maps and resetting your profile settings by going to Menu → Settings → App profile (Bicycle) → Reset to default.

Here’s the link to the web version for reference: OsmAnd Navigation.

OsmAnd~ 4.9.0#3212m, released: 2024-09-18

scaidermern commented 1 month ago

I recommend updating your maps and resetting your profile settings by going to Menu → Settings → App profile (Bicycle) → Reset to default.

My map is up to date, the app is the latest stable version and I can reproduce this with a freshly created bicycle profile.

vshcherb commented 1 month ago

@scaidermern live updates?

vshcherb commented 1 month ago

cycleway:both = no https://www.openstreetmap.org/way/24231331

vshcherb commented 1 month ago

I see only detour for safety - driving_style_safety https://osmand.net/map/navigate/?start=51.880600,-9.584800&end=51.879736,-9.582648&profile=bicycle&params=bicycle,driving_style_safety,driving_style_balance:false#18/51.88047/-9.58329, not for balance

scaidermern commented 1 month ago

@scaidermern live updates?

I've tried with and without, the result is the same.

cycleway:both = no https://www.openstreetmap.org/way/24231331

This is a physical property, not a legal one. Does it affect the balanced routing?

The other roads involved also don't have dedicated cycleways.

vshcherb commented 1 month ago

For safety it's deprioritized secondary vs tertiary

scaidermern commented 1 month ago

For safety it's deprioritized secondary vs tertiary

That makes sense. But crossing a secondary is probably as dangerous as riding a short stretch along it. Are there penalties for crossing roads that are of higher priority than the current one?

vshcherb commented 1 month ago

Your report is about - Bicycle, balanced, no live data. So in the end we didn't reproduce it.