Repository navigation
Keep road class bicycle safety on German roundabouts - #8318
Open
swamil-5504 wants to merge 1 commit into
Open
swamil-5504 wants to merge 1 commit into
swamil-5504 wants to merge 1 commit into
Conversation
The GermanyMapper roundabout rules replaced the road class's way properties: every non-residential roundabout became BICYCLE_AND_CAR with default safety. This dropped the road class bicycle safety and gave motorway roundabouts bicycle access, cycleway roundabouts car access and footway roundabouts no pedestrian access. Replace them with a mixin that only removes pedestrian access on roundabouts of major roads without a foot tag, so the road class properties and the general roundabout safety factors apply.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #8318 +/- ##
=============================================
- Coverage 76.20% 76.20% -0.01%
+ Complexity 24904 24901 -3
=============================================
Files 2671 2671
Lines 93274 93273 -1
Branches 9293 9293
=============================================
- Hits 71080 71075 -5
- Misses 19051 19052 +1
- Partials 3143 3146 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The roundabout rules in
GermanyMapperreplaced the way properties of the road class. Every non-residential roundabout becameBICYCLE_AND_CARwith default safety. As a result:This PR replaces those rules with a mixin. The mixin only removes pedestrian access on roundabouts of major roads that have no
foottag. The road class properties and the general roundabout safety factors now apply.Issue
No separate issue was created. This is a small bugfix.
The two rules
highway=residential;junction=roundaboutandhighway=*;junction=roundaboutare removed. A mixin replaces them and matches roundabouts where:junction=roundabouthighwayis one ofprimary,primary_link,secondary,secondary_link,service,tertiary,tertiary_link,trunk,trunk_linkorunclassifiedfoottagThe mixin only removes
PEDESTRIANpermission. It doesn't replace the way properties, so roundabouts keep their road class permissions and bicycle safety. The general roundabout safety factors are applied on top. The residential roundabout rule (ALL, bike safety 0.98) gave the same values as the residential road class, so removing it changes nothing.Unit tests
New tests in
GermanyMapperTest:roundaboutKeepsRoadClassBicycleSafety: aprimaryroundabout keeps the bike safety of its road class (2.06), and the roundabout factor is applied on top (3.09).roundaboutWithExplicitFootAccessAllowsPedestrians: aprimaryroundabout taggedfoot=yeskeepsALLpermission.footwayRoundaboutAllowsPedestrians: afootwayroundabout keepsPEDESTRIANpermission.Documentation
A code comment explains why pedestrian access is removed and why a mixin is used. The generated
doc/user/osm/Germany.mdis updated: the two roundabout rules are gone from the way properties table, and the new mixin is in the mixins table. No configuration options were added.