Repository navigation
Fix for #2980, block highway=cycleway with access=no - #2981
Conversation
|
Why do we treat |
# Conflicts: # core/src/test/java/com/graphhopper/routing/util/parsers/BikeTagParserTest.java # core/src/test/java/com/graphhopper/routing/util/parsers/OSMGetOffBikeParserTest.java
Yes, you are right. Thanks! I'll update. Reduction to walking speed is included now |
|
Please recheck. I think that all requested improvements are included now. |
|
bicycle=no should probably also be included in the fallback to pushing. Not sure how often it occurs, but should that fallback branch check if walking is allowed? |
No, I think that this would be too controversial as it would allow bicycles also on |
Looking at the details of this change I found out that it would also modify the access result for the tag combination So I'm not sure if this change is really a good idea. |
…re if this is a good idea
In Germany, at least, that's fine as long as you're pushing your bike. But that means we have to assume walking speed and display a dismount warning. |
I forgot about this recent cool feature. With this functionality my previous concerns are not valid any more. Therefore I'm setting the getOffBikeEnc now and I verified that the dismount warning is displayed correctly for the tag combinations |
|
Partly you are right @ratrun because e.g. on openstreetmap.org there are no route hints and most mappers probably use this. Could we further avoid this? Maybe e.g. avoid the cases where
yes, could be. @ratrun (?)
Yes, this would be important if the mapping is a bit strange e.g. for vehicle=no and foot=no instead of access=no. |
I think that this would require to change the |
A bit of a slippery slope, isn't it? Following that line of reasoning, we'd have to block off all sections of road marked for dismounts or carrying other important routing information. Or to put it another way, this problem needs to be solved in the right place, which IMHO is the OSM website.
That sounds like a good idea. Being told to get off the bike by a traffic sign and voluntarily switching to pedestrian are two different things and should be treated as such. |
I'm not sure if we can support such a distinction. My suggestion for this new
|
If we're not allowed to use the road either way, we can also keep |
OK.
I'm not sure if I understood this one. Using the value @karussell What do you think about the idea of changing the current |
Exactly. If access is prohibited, there's no point in duplicating this information in a GetOffBike enum value. |
isn't this accessibility information already available via
Currently I do not see a reason for this. |
Good point |
How would a custom model for bicycles theoretically look like which routes on such a combination? I put but this does not work. These edges are not considered as they are still not accessible for a bike. I guess that this is an issue which would need to be considered separately even if we changed the EV for the Now that we have discussed the enum idea this PR is ready for merge from my point of view. Could you please check again? |
For the latest stable 9.1 you can modify bike.json and include (For older versions you would have to use the roads profile)
will do |
There was a problem hiding this comment.
Instead of the current code in BikeCommonAccessParser: could we not just remove the vehicle key from the restrictionKeys? Because without it this would make the code more complex and this also leads to the following inconsistency: for vehicle=forestry the access is forbidden, but for vehicle=no it is allowed.
I guess that here you mean a removal of the |
karussell
left a comment
There was a problem hiding this comment.
I do not get why this would make BikeCommonAccessParser more complex, can you please explain it a little bit more?
we can now remove the change in BikeCommonAccessParser. See my comment below.
But the more important good question is if we should consequently also allow ways tagged as vehicle=forestry as EV get_off_bike sections. First I didn't want to change the blocking here because of the impact it might have on routes in forest/agriculture areas, people actually not obeying the law, and the lack of the OSM website to indicate that there are get_off_bike sections contained. But you convinced me that we also should change that.
And is a change required in BikeCommonAverageSpeedParser because of this? Should we reduce the speed for vehicle=forestry/agricultural to walking speed? As I understand we currently skip these roads and with this change we should allow access but only with walking speed.
Thank you, you are right. Implemented in a6d14ff |
…mmonAverageSpeedParser.java Co-authored-by: Peter <[email protected]>
#2980