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
Problem with bicycle=yes and vehicle=destination #1831
Isn't this the expected behavior? If an edge is tagged with vehicle=destination, the bike flag encoder will pick this up and set the RoadAccess to destination (vehicle is added to restrictions for bikes). RoadAccess is a required encoded value, so it's always used, right? The fastest weighting will add the edge penalty for destination access.
As mentioned in #1272, we could think about not using the destination tag at all for bike and foot.
If an edge is tagged with vehicle=destination, the bike flag encoder will pick this up and set the RoadAccess to destination (vehicle is added to restrictions for bikes).
Thanks, indeed, this is the reason.
Having such an example still helps to see that even an explicit bicycle=destination should be ignored here.
I again parsed some forum entries and many mapper believe that a sign which shows
"bicycles only OR destination only" means highway=cycleway and vehicle=destination
which is IMO a tagging mistake and instead highway=cycleway and motor_vehicle=destination should be used. Discussed e.g. here (German).
In general there are several mistakes where vehicle=x is used instead of motor_vehicle=x, but there does not seem to be even a sign that really means "vehicle=destination (i.e. with foot and bike)".
And as this makes bike+foot routes worse like here, we should consider closing #1272.
Maybe even removing the destination restriction for the bike + foot routing in general that would fix this issue here. Thoughts @ratrun ?
If an edge is tagged with vehicle=destination, the bike flag encoder will pick this up and set the RoadAccess to destination (vehicle is added to restrictions for bikes).
I guess here you mean this line of code in BikeCommonFlagEncoder: restrictions.addAll(Arrays.asList("bicycle", "vehicle", "access"));
I tried to remove the "vehicle" from this list, recompiled and tested the example above, but this does not help. This explaination also does not explain that I need to remove both tags vehicle=destination and motor_vehicle=destination in order to fix the issue.
Activity
karussell commentedon Dec 19, 2019
Strange. Especially since #1272 is not yet merged. And your request seems to support my claim that we should not support this tag for bike and foot.
So surely we need to investigate what is wrong here.
boldtrn commentedon Jan 16, 2020
Isn't this the expected behavior? If an edge is tagged with vehicle=destination, the bike flag encoder will pick this up and set the RoadAccess to destination (vehicle is added to
restrictionsfor bikes). RoadAccess is a required encoded value, so it's always used, right? The fastest weighting will add the edge penalty for destination access.As mentioned in #1272, we could think about not using the destination tag at all for bike and foot.
karussell commentedon Jan 16, 2020
Thanks, indeed, this is the reason.
Having such an example still helps to see that even an explicit bicycle=destination should be ignored here.
I again parsed some forum entries and many mapper believe that a sign which shows
"bicycles only OR destination only" means
highway=cyclewayandvehicle=destinationwhich is IMO a tagging mistake and instead
highway=cyclewayandmotor_vehicle=destinationshould be used. Discussed e.g. here (German).In general there are several mistakes where vehicle=x is used instead of motor_vehicle=x, but there does not seem to be even a sign that really means "vehicle=destination (i.e. with foot and bike)".
And as this makes bike+foot routes worse like here, we should consider closing #1272.
Maybe even removing the destination restriction for the bike + foot routing in general that would fix this issue here. Thoughts @ratrun ?
ratrun commentedon Jan 16, 2020
I guess here you mean this line of code in
BikeCommonFlagEncoder:restrictions.addAll(Arrays.asList("bicycle", "vehicle", "access"));I tried to remove the "vehicle" from this list, recompiled and tested the example above, but this does not help. This explaination also does not explain that I need to remove both tags
vehicle=destinationandmotor_vehicle=destinationin order to fix the issue.boldtrn commentedon Jan 17, 2020
Yes indeed, there are quite a lot of tagging mistakes in that area.
AFAIK in Germany, the sign is the red circle, with white background and an attached sign "Anlieger frei", see for example this file: https://commons.wikimedia.org/wiki/File:Wuppertal_Carnaper_Stra%C3%9Fe_2018_039.jpg
This should be vehicle=destination, including bikes. I think pedestrians are still allowed to pass. I am not sure if there are other signs.
Did you also reimported the graph?
ratrun commentedon Jan 17, 2020
Yes I did. I do not see any tagging error as the tagging is according to this signs: http://osmtools.de/traffic_signs/?signs=250,1020-12 which means "Fahrrad und Anlieger frei", therefore the way also has a tag
bicycle=yes.boldtrn commentedon Jan 18, 2020
That's strange, maybe we should debug what happens here.
ratrun commentedon Jan 18, 2020
I would ask for debugging. How ever this can be done in this case. I don't know it.
What I tried is playing around with this test:
This test passes irrespsective if
vehicle=destinationandmotot_vehicle=destinationis included or not.karussell commentedon Feb 6, 2020
Yeah, this seems to be a bug. Here is another example that uses
motor_vehicle:destinationand should not affectbike.Update: maybe also here: https://discuss.graphhopper.com/t/5185
ratrun commentedon Feb 25, 2020
Maybe I now found the reason:
graphhopper/core/src/main/java/com/graphhopper/routing/weighting/FastestWeighting.java
Lines 91 to 92 in 0ea8d46
If I comment out these two lines then the segment tagged as
motor_vehicle=destinationis taken. This code part is not aware of thebicycle=yestagkarussell commentedon Feb 25, 2020
Ah, thanks, indeed this is wrong!!
karussell commentedon Feb 27, 2020
Thanks again @ratrun for the investigation! The fix will hopefully be deployed next week.
karussell commentedon Mar 16, 2020
Took a bit longer but is now deployed :)