Add separate no-thru handling for bicycles#3410
Conversation
6500e91 to
ebd2c15
Compare
| || "forestry".equals(access) || "agricultural".equals(access); | ||
| return noThruTraffic; | ||
| return "destination".equals(access) || "private".equals(access) | ||
| || "customers".equals(access) || "delivery".equals(access); |
There was a problem hiding this comment.
It does seem strange, but do you know why the "forestry" and "agricultural" tags where checked here?
There was a problem hiding this comment.
We also thought that this is strange - if not a bug. In Germany at least forestry and agricultural roads are not no-thru by default. They may be closed to non-farming traffic but that's not what this piece of code did.
For that reason I removed it.
If no-thru really is specific to each country then we need move that into the way property set.
There was a problem hiding this comment.
It might be that it is there to avoid taking shortcuts through forestry and agricultural roads, even if it is technically allowed. We could talk about this on the next dev meeting, to get other people's input.
There was a problem hiding this comment.
Handling of the tags was moved to WayPropertySetSource so that is may be modified as-needed, along with a mention of the changes to the mailing list.
87beecd to
03eca8f
Compare
|
I've stumbled upon this while researching router handling of forestry roads, and yes, I realize the thread is old. Just to clarify, To allow for recreational cycling, tagging should be Under no circumstances should you route a recreational cyclist e.g. through In Austria, this would also be in violation of federal law (and the traffic sign is tagged as |
Summary
Creates no-thru handling for bicycles separate from cars.
Issue
Closes #3396
Unit tests
I've added unit tests for both the car and the bicycle cases.
Code style
✅
Documentation
It seems like and implementation detail. Should it be explicitly documented?
Changelog
✅