osmandapp / OsmAnd

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

`surface=gravel` & bends cost #15116

Closed toyotaekefar closed 2 years ago

toyotaekefar commented 2 years ago

๐Ÿž routing report

Routing engine

Routing Profile

Car

Start and end points

https://osmand.net/map?start=49.083107%2C33.424256&end=49.087102%2C33.431590&mode=car#16/49.0843/33.4297

Actual and expected routes

Actual: Europe Street (ะ„ะฒั€ะพะฟะตะนัะบะฐ ะฒัƒะปะธั†ั) > https://www.openstreetmap.org/way/300715840 > https://www.openstreetmap.org/way/305086830 > Heroes of Mariupol Lane (ะ“ะตั€ะพั—ะฒ ะœะฐั€ั–ัƒะฟะพะปั ะฟั€ะพะฒัƒะปะพะบ) > highway=service to apartment building photo_2022-08-18_22-07-09

At https://www.openstreetmap.org/way/300715840 surface=gravel from 13 Jan 2019 https://www.openstreetmap.org/changeset/66272542

Expected: Europe Street (ะ„ะฒั€ะพะฟะตะนัะบะฐ ะฒัƒะปะธั†ั) > Freedom Avenue (ะกะฒะพะฑะพะดะธ ะฟั€ะพัะฟะตะบั‚) > Heroes of Mariupol Lane (ะ“ะตั€ะพั—ะฒ ะœะฐั€ั–ัƒะฟะพะปั ะฟั€ะพะฒัƒะปะพะบ) > highway=service to apartment building

photo_2022-08-18_22-06-32

Is this a regression?

Don't know ## ๐ŸŒ Your Environment **OsmAnd Version:**
4.2.7
**Device and Android/iOS version:** All **Maps used (online or offline):**

Anything else relevant?

After the detection of the routing problem, smoothness=bad + lanes=1 at https://www.openstreetmap.org/way/300715840, lanes=3 + surface=asphalt at https://www.openstreetmap.org/way/846193383, https://www.openstreetmap.org/way/175941297, lanes=2 + surface=asphalt at https://www.openstreetmap.org/way/177963088 were added

xmd5a2 commented 2 years ago

Route through trunk: routing_time=383,5 Route through gravel: routing_time=299,8 Routing time via trunk is so high because there are 2 traffic signals. It is debatable that route through gravel is less preferable.

xmd5a2 commented 2 years ago

Added penalty to gravel. Now it doesn't build route through it. Screenshot_2022-09-01_11-00-46

xmd5a2 commented 2 years ago

Route with "Avoid unpaved" option: Screenshot_2022-09-01_11-03-43

vshcherb commented 2 years ago

This is also gravel - https://www.openstreetmap.org/way/678718969. I think it's pretty bad... https://wiki.openstreetmap.org/wiki/Tag:surface%3Dgravel If it's like this - https://wiki.openstreetmap.org/wiki/Tag:surface%3Dgravel. Probably we can lower speed and also introduce penalty_transition for them?

toyotaekefar commented 2 years ago

Routing time via trunk is so high because there are 2 traffic signals. It is debatable that route through gravel is less preferable.

The duplicate of the traffic light was removed after your message. However, I believe that even 2 traffic lights would be preferable than surface=gravel & such bends at the highways/roads

xmd5a2 commented 2 years ago

@vshcherb OsmAnd doesn't build a route through gravel after last update. Also I think that introducing penalty transition for gravel is a bad idea because it adds penalty for transitions from any type of road but there are roads much worse than gravel. @toyotaekefar There is "Avoid unpaved roads" routing option.