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
maxspeed:forward and maxspeed:backward evaluates to the slower speed of both #2662
When setting both forward, and backward speed graphhopper appears to be using always the lower speed for both directions.
E.g. maxspeed:forward is 30 and maxspeed:backward is 5 -> resulting speed for both directions is 5.
From my understanding detailed information of speeds per direction are lost that way. Would be glad if someone could validate if this is the intended behaviour or I'm misunderstanding something. :)
Yes, we should get rid of the maximum handling in the CarTagParser and use the max speed value from the encoded value where we support two values for both directions and then combine them in a custom model.
Activity
otbutz commentedon Sep 26, 2022
Any source for the OSM suggestion?The current logic will always use the lowest valid maxspeed value.
Edit: misread your post. Forward/backward maxspeed distinction is obvious.
MaX-Lo commentedon Sep 26, 2022
Sure. (edited the original text as well)
https://wiki.openstreetmap.org/wiki/Key:maxspeed#Driving_direction
otbutz commentedon Oct 7, 2022
It appears that we don't fully support speed for different directions.
CarTagParser.applyMaxSpeed()internally uses the lowest maxspeed. The result is simply duplicated if the EncodedValue supports two directions:graphhopper/core/src/main/java/com/graphhopper/routing/util/CarTagParser.java
Lines 225 to 233 in 6df9908
karussell commentedon Oct 7, 2022
Yes, we should get rid of the maximum handling in the CarTagParser and use the max speed value from the encoded value where we support two values for both directions and then combine them in a custom model.