Skip to content

Commit

Permalink
Allow CAR for highway=liviving_street with cycleways
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Jul 28, 2024
1 parent 2787322 commit aa9315e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ public void populateProperties(WayPropertySet props) {
);
props.setProperties("highway=*;junction=roundabout", withModes(BICYCLE_AND_CAR));

// Living streets with cycleways are usually accessible for all modes
// https://overpass-turbo.eu/s/1OPP
props.setProperties(
"highway=living_street;cycleway=*",
withModes(ALL).bicycleSafety(0.85)
);

// Pedestrian zones in Germany are forbidden for bicycles by default
props.setProperties("highway=pedestrian", withModes(PEDESTRIAN));
props.setProperties("highway=residential;maxspeed=30", withModes(ALL).bicycleSafety(0.9));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@ void cyclewayOpposite() {
assertEquals(0.9, wps.getDataForWay(way).bicycleSafety().forward(), epsilon);
// walk safety should be default
assertEquals(1, wps.getDataForWay(way).walkSafety().forward(), epsilon);
assertEquals(StreetTraversalPermission.ALL, wps.getDataForWay(way).getPermission());
}

@Test
void cyclewayOppositeLivingStreet() {
// Test that cyclewayOpposites can be accesses by all modes
// way24623452 (Annastraße Aachen)
var way = new OSMWithTags();
way.addTag("cycleway", "opposite");
way.addTag("highway", "living_street");
way.addTag("lit", "yes");
way.addTag("maxspeed", "30");
way.addTag("oneway", "yes");
assertEquals(0.85, wps.getDataForWay(way).bicycleSafety().forward(), epsilon);
assertEquals(StreetTraversalPermission.ALL, wps.getDataForWay(way).getPermission());
}

@Test
Expand Down

0 comments on commit aa9315e

Please sign in to comment.