VeloPlannerV
VeloPlanner
Mar 25

Adjust routing deviations along main roads

When planning a route that goes along a main road, the routing is trying very hard to avoid this main road at any cost. This is often a good thing, but it causes very short deviations from a main road, even if Eurovelo or other routes go along the main road. Even after setting multiple waypoints (see screenshots2), the routing still sticks to the side paths and goes back and forth between the waypoints. Took me up to 20 waypoints to stick to 1km Eurovelo on the main road and not take any weird deviations. Possible fix: Adjust routing behavior for going on and off the same road (maybe with a minimum distance). Additionally, turn off any short and unnecessary deviation IF there is an Eurovelo or route on the main road, especially when having the touring profile selected. Maybe the exact routing behavior for those deviations could be programmed into the routing profiles or an additional setting?
PendingPending

Mar 27, 2025

Nico Did you use "touring bike" profile? Can you send me a link to places from the screenshots?

Mar 31, 2025

Kacper Golinski Yes, happens in several profiles. Sometimes even in "road bike". After some testing, it seems to be a Norway-specific issue. Since it doesn't seem to be possible to search with coordinates, I created you a route with different stages all highlighting the same problem: Avoiding the main road at all costs. The first stage isn't really about Eurovelo, but the 430km detour for a 50km route is still pretty interesting. https://veloplanner.com/user-routes/1575

Mar 31, 2025

Kacper Golinski Okay, I did some further research. It looks like those main roads in Norway are all missing the "bicycle=yes" tag inside OSM. Even if it has a connected Eurovelo relation. Could that be the root the problem?

Apr 1, 2025

NicoThanks for investigating this. Missing `bicycle=yes` is not a problem but I found some issue in the routing engine (Graphhopper). I will fix it and probably tomorrow (after full data import) it should work better.

Apr 2, 2025

Nico It looks it's slighly better. Can you check that? That big detour is indeed funny but it's because touring profile is really heavily favouring marked cycling routes and tries to avoid big roads as much as possible. That's why we got this detour. For bike touring, I don't take "distance" into account because I assumed tourers do not want to go as fast as possible from point A to B.

Apr 3, 2025

Kacper Golinski Yes, much better now. Thank you! The only thing I noticed: The big detour now got even bigger if you reapply the touring profile! From 477 to 617km!

Apr 3, 2025

Nico I suspect the problem is because of ferry which is not deprioritized. Maybe we should try to avoid ferries if possible.

Apr 3, 2025

Kacper Golinski No I think it's fine since rerouting with waypoint works okay now. Deprioritizing probably would hurt though. Maybe a routing preference to "avoid ferries when possible"? Would work with any kind of road category or surface. Random idea: Hide those settings under a new "Custom" bike profile so you can specify your own routing? What really needs fixing in my opinion are those tiny deviation when you are on a main road: Go off and then back on the same road just a few meters later. I cannot think of a single case where I would prefer this kind of routing instead of just going straight. They are extremely annoying for turn by turn navigation and take quite some time to fix since one waypoint usually isn't enough.

Apr 3, 2025

Nico It's a problem when you want to create route on mine road :( Bike profiles do not like it and try to re-route. There is no easy logic to detect those detours. I was asking routing engine creators already. Can you send me link to that place? Url stores current map position