You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update: we already slightly increase the priority for cycleway=lane and more is probably not a proper solution for other cases as painted cycleways are not really a big advantage. Now, using this branch and turn_costs:{left:6,right:6} already improves this situation a lot:
This issue can be closed. If the bike_tc.json custom model is activated (which is not the case apparently on the online instance), the zig-zags can be avoided.
Hi, I'm a delivery driver and developer in Waterloo, Ontario. I work on route optimisation for my own nightly delivery rounds, and I audit every leg against OSM way tags — 5,536 legs over 786 km in my last audit.
I'd like to help with this one, but I want to check first: is #1500 still wanted, or is the bike_tc.json custom model the intended fix now? I read the thread as: the SLIGHT_PREFER boost from #2785 isn't enough on its own, and the zigzag is still there on the public instance.
If it's still open, I can start with a repro: a Waterloo bike route on a road with cycleway=lane where GraphHopper still zigzags, with the way IDs and the before/after route. I'm new to this codebase (my production work is TypeScript / React Native, not Java), so a repro and a small, pointed fix in BikeCommonPriorityParser is the right first step for me — happy to be pointed at the exact piece a maintainer wants.
Activity
ooxaam commentedon Dec 19, 2018
hi , I want to work on this issue. Can you please provide more details on it...
Manishpandey11 commentedon Oct 6, 2022
Hello ,I want to work on this issue
XxBrezxX commentedon Jul 3, 2023
Is this issue solved?
otbutz commentedon Jul 10, 2023
We handle
cycleway=lanebut it doesn't boost the priority of the way:graphhopper/core/src/main/java/com/graphhopper/routing/util/parsers/BikeCommonPriorityParser.java
Lines 178 to 180 in a9216c7
ansumandas441 commentedon Oct 30, 2023
Hi, I would like to work on this issue.
otbutz commentedon Oct 30, 2023
Looks like the priority boost to
SLIGHT_PREFERintroduced by @ratrun in #2785 isn't enough to fix the route.@ansumandas441 feel free to craft a PR 😉
otbutz commentedon Oct 30, 2023
I haven't looked into it, but maybe this is an unintended side effect of avoiding certain highways(see #2796):
graphhopper/core/src/main/java/com/graphhopper/routing/util/parsers/BikeCommonPriorityParser.java
Lines 69 to 77 in 49c456d
graphhopper/core/src/main/java/com/graphhopper/routing/util/parsers/BikeCommonPriorityParser.java
Lines 176 to 179 in 49c456d
https://www.openstreetmap.org/way/475214970
[-]Prefer cycleway:lane for bike[/-][+]Prefer cycleway=lane for bike[/+]ratrun commentedon May 4, 2025
This issue can be closed. If the bike_tc.json custom model is activated (which is not the case apparently on the online instance), the zig-zags can be avoided.
rawmeat21 commentedon Jul 5, 2026
Is this issue still open? I'd like to work on this.
paulo-aunor commentedon Nov 26, 2026
Hi, I'm a delivery driver and developer in Waterloo, Ontario. I work on route optimisation for my own nightly delivery rounds, and I audit every leg against OSM way tags — 5,536 legs over 786 km in my last audit.
I'd like to help with this one, but I want to check first: is #1500 still wanted, or is the bike_tc.json custom model the intended fix now? I read the thread as: the SLIGHT_PREFER boost from #2785 isn't enough on its own, and the zigzag is still there on the public instance.
If it's still open, I can start with a repro: a Waterloo bike route on a road with cycleway=lane where GraphHopper still zigzags, with the way IDs and the before/after route. I'm new to this codebase (my production work is TypeScript / React Native, not Java), so a repro and a small, pointed fix in BikeCommonPriorityParser is the right first step for me — happy to be pointed at the exact piece a maintainer wants.
Thanks,
Paulo Aunor, github.com/paulo-aunor