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
{{ message }}
Repository navigation
bike should prefer more footways with bicycle=yes #3014
I noticed that bike profile is preffering tertiary highway instead of footway where bicycle traffic is allowed (bicycle=yes). In my case, it leads to strange route.
Should we lower speed that much if there is bicycle=yes tag in the footway?
} elseif (way.hasTag("bicycle", "designated") || way.hasTag("bicycle", "official") ||
way.hasTag("segregated", "yes") || way.hasTag("bicycle", "yes")) {
// Here we handle the cases where the OSM tagging results in something similar to "highway=cycleway"if (way.hasTag("segregated", "yes"))
speed = highwaySpeeds.get("cycleway");
elsespeed = way.hasTag("bicycle", "yes") ? 10 : highwaySpeeds.get("cycleway");
As long as there is no segregated tag I think that the speed penalty of 8km/h is reasonable compared to the speed you can go on the parallel tertiary road. We need to assume pedestrians and therefore one needs to slow down.
Yes, I think you should try it. I will support your PR, but we need to convince @karussell. If you do so I recommend to also remove the next line preferHighwayTags.add("tertiary_link"); You need to follow CONTRIBUTING.md. and may add yourself to the CONTRIBUTORS.md file.
Activity
ratrun commentedon Jun 9, 2024
As long as there is no
segregatedtag I think that the speed penalty of 8km/h is reasonable compared to the speed you can go on the paralleltertiaryroad. We need to assume pedestrians and therefore one needs to slow down.caspg commentedon Jun 9, 2024
I get that but routing in this case is clearly not ideal. Valhalla and Komoot are using footway in my example.
Can I somehow prioritize that footway with bicycle=yes?
ratrun commentedon Jun 9, 2024
We are already prioritizing
bicycle=yeswith the value PREFER, seeBikeCommonPriorityParsergraphhopper/core/src/main/java/com/graphhopper/routing/util/parsers/BikeCommonPriorityParser.java
Lines 200 to 201 in 5eb09e7
But we are prioritizing
tertiaryalso as PREFER, seegraphhopper/core/src/main/java/com/graphhopper/routing/util/parsers/BikePriorityParser.java
Line 21 in 5eb09e7
Eventually we should remove this line and additionally change the speed from 10 to 12 or 14. Can you try if this solves your reported example?
caspg commentedon Jun 9, 2024
@ratrun Removing
preferHighwayTags.add("tertiary");and changing speed to 12 worked!Should I submit PR with this change?
ratrun commentedon Jun 9, 2024
Yes, I think you should try it. I will support your PR, but we need to convince @karussell. If you do so I recommend to also remove the next line
preferHighwayTags.add("tertiary_link");You need to follow CONTRIBUTING.md. and may add yourself to the CONTRIBUTORS.md file.matkoniecz commentedon Jun 25, 2024
#3015 is merged, should this issue be closed?
[-]bike should preffer more footways with bicycle=yes[/-][+]bike should prefer more footways with bicycle=yes[/+]consistent unclassified&tertiary: both UNCHANGED (#3014); tunnel less…