Skip to content

Commit

Permalink
more OSM tags for highways
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorRyb committed Dec 20, 2024
1 parent c3ad5de commit 10e74b4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> allowedModes = Sets.newHashSet(TransportMode.bike);
allowedModes.addAll(link.getAllowedModes());
link.setAllowedModes(allowedModes);
Expand Down

0 comments on commit 10e74b4

Please sign in to comment.