diff --git a/src/main/java/org/matsim/run/RunOpenBerlinScenarioWithBikeOnNetwork.java b/src/main/java/org/matsim/run/RunOpenBerlinScenarioWithBikeOnNetwork.java index 8f10d570..ac822945 100644 --- a/src/main/java/org/matsim/run/RunOpenBerlinScenarioWithBikeOnNetwork.java +++ b/src/main/java/org/matsim/run/RunOpenBerlinScenarioWithBikeOnNetwork.java @@ -130,7 +130,11 @@ protected void prepareScenario(Scenario scenario) { if (link.getAllowedModes().contains(TransportMode.car)) { if (!link.getAllowedModes().contains(TransportMode.pt) && !link.getAttributes().getAttribute("type").equals("motorway") || !link.getAttributes().getAttribute("type").equals("trunk") || !link.getAttributes().getAttribute("type").equals("motorway_link") || - !link.getAttributes().getAttribute("type").equals("trunk_link")) { + !link.getAttributes().getAttribute("type").equals("trunk_link") || !link.getAttributes().getAttribute("type").equals("'highway.motorway") + || !link.getAttributes().getAttribute("type").equals("'highway.motorway_link'") + || !link.getAttributes().getAttribute("type").equals("'highway.trunk'") + || !link.getAttributes().getAttribute("type").equals("'highway.trunk_link'") + ) { Set allowedModes = Sets.newHashSet(TransportMode.bike); allowedModes.addAll(link.getAllowedModes()); link.setAllowedModes(allowedModes);