There is in intersection of 3 roads: 1 tertiary and 2 unclassified and routing algo takes the long way around. Why is that? Can we somehow influence it to take shorter route? The westernmost road is lower quality that the other two.
This seems to happen only when using OSRM, as the other two engines on osm.org take the shortcut.
Routers have a heuristic to avoid changing road class, which is one possibility for why OSRM bypasses that first intersection. On the reverse trip, putting off changing the road class (getting onto the tertiary) until as late as possible results in taking the shortcut.
Routers generally have debug modes where theyâll print a lot more data, but itâs not visible from osm.org. On OSRMâs debug map for this location you can see it assumes the tertiary can be traversed at 48 km/h and the unclassified at 25 km/h, so it might be faster to stay on the tertiary. It also shows that the score penalty for turns onto and off the shortcut is 0.0 (I would guess due to the shallow angle), for the right-angle right turn off the tertiary it is 1.3, and for the left turn onto the tertiary it is 4.3. That last detail might be why it prefers to take the shortcut on the way back.
OSRM at least seems to assume that the two unclassifieds have the same quality. They are tagged the same in OSM right now. If you can quantify the âlower qualityâ, you can tag that in OSM. Is it narrower? Bumpier? Is the Relocation Road a more built-up surface?
in which way? likely it is taggable and routers would be given direct info rather than trying to guess
maybe this router assumes that lower class road with unpaved may be more likely to be sand or mud and is desperate to avoid it.
(note: no promises that this specific router will change its behaviour, but being more specific in tagging would help. Note that router may take week or two to update after the edit.)
Zeballos and Atluck are similar quality so why one is classified as 48km/h and the other one as 25km/h? Also the official speed limit on Zeballos is 60km/h.
Hookup is same compacted class, just a little worse, also goes uphill from north to south while Atluck is level in this part. Taking the longer route leads uphill to go downhill to the same level right after.
Speed limits are not tagged in OpenStreetMap, only incredibly vague surface is tagged - so routers are trying to guess.
If more precise info will be tagged then there is chance that guesses may improve.
Or at least it will turn out to be routerâs fault and bug report can be filed.
If you are familiar with this roads - you can try to provide more info by mapping in OpenStreetMap.
LLM may exist nowadays but routers are not reading this thread.
It looks like my changes are deployed to maps, but OSRM selects exactly same route as before. The debug view also shows exactly same road speeds assumed.
Does OSRM use some older snapshot or maybe my changes made no impact?
Is there some other forum where I can ask how OSRM calculates road graph weights?