osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.38k stars 989 forks source link

Unclassified Highway is ignored in favor of longer route #16062

Open xeruf opened 1 year ago

xeruf commented 1 year ago

🐞 routing report

Routing engine

Routing Profile

Car

Start and end points

Near Riesa, Saxony, Germany: Navigate from "Prausitz" to "Seerhausen"

Actual and expected routes

One could continue the "Prausitzer Straße" towards Mehltheuer on a highway=unclassified, but OsmAnd Routing adds a corner southwards of about one kilometer extra.

Is this a regression?

Don't know

🌍 Your Environment

OsmAnd Version: 4.2.7

Device and Android/iOS version: Lineage on Fairphone

Maps used (online or offline): both

Anything else relevant?

vshcherb commented 1 year ago

https://www.openstreetmap.org/directions?engine=graphhopper_car&route=51.2561%2C13.3121%3B51.2667%2C13.2546#map=14/51.2522/13.3071

Similar to OSRM OsmAnd suggest https://osmand.net/map?start=51.257403%2C13.311653&end=51.266426%2C13.253460&mode=car#14/51.2590/13.2968

The penalty is probably pretty high but in total unclassified road considered to be 60 seconds extra.

xeruf commented 1 year ago

an absolute value? The penalty should depend on the length of the road, shouldn't it?

vshcherb commented 1 year ago

Penalty is a coefficient to time spend on the road, it's not a value