osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.59k stars 1.01k forks source link

bicycle: improve routing over dedicated bicycle roads #20601

Open dupondje opened 1 month ago

dupondje commented 1 month ago

Routing engine

Routing Profile

Bike

Start and end points

https://osmand.net/map/navigate/?start=51.077192,3.675056&end=51.041565,3.397356&profile=bicycle#14/51.0889/3.6520

Actual route

Expected route

Maps you used (online or offline)

Your Environment

OsmAnd Version: Latest
Android version: 14
Device model: Xiaomi 14

Anything else?

I think there are some things that can be improved a lot in the routing.xml.

For example: https://github.com/osmandapp/OsmAnd-resources/blame/0bd32e5500bb047838c109ea181e809ec951645e/routing/routing.xml#L1718

A dedicated bicycle route gets 1.8.

But a bicycle lane (aka moordstrookje in belgium), gets a stunning 3.2 ! https://github.com/osmandapp/OsmAnd-resources/blame/0bd32e5500bb047838c109ea181e809ec951645e/routing/routing.xml#L1648

Which means OsmAnd will prefer you routing over a bicycle lane than using a dedicated bicycle lane. I think we should prioritize dedicated bicycle roads?

yuriiurshuliak commented 1 month ago

The route does indeed differ from what you've indicated. However, it's important to note that other routing services also avoid this route, likely due to it being a service road with a speed limit of up to 30 km/h.

Additionally, this road is longer in both distance and time, which is why the chosen route is used instead.

You can view the route in the web version here.

The link to the OSM version is here.

DmitryAlexei commented 1 month ago

It sounds more like a Feature request:

dupondje commented 3 weeks ago

Additionally, this road is longer in both distance and time, which is why the chosen route is used instead.

It's 4.3 vs 4.5km indeed. Minor difference. But still its not really logical that a dedicated bicycle route in routing.xml only gets 1.8 while a lane gets 3.2. A dedicated route should always be higher prio? Also bicycle has followSpeedLimitations="false", this means speed limits are not taken into account when calculating the route?

And indeed @DmitryAlexei , such an option would be great :) Would be nice if we can get similar routing like https://fietssnelwegen.be/routeplanner

scaidermern commented 3 weeks ago

But still its not really logical that a dedicated bicycle route in routing.xml only gets 1.8 while a lane gets 3.2.

Sounds very strange indeed.