Skip to content

Commit

Permalink
Update NoMotorwayTraversalPermissionLabeler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ansoncfit committed Jan 3, 2025
1 parent 55944d9 commit 801c41a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class NoMotorwayTraversalPermissionLabeler extends TraversalPermissionLab
@Override
public RoadPermission getPermissions(Way way) {
RoadPermission rp = super.getPermissions(way);
if (way.tagIsTrue("motorway")) {
if (way.hasTag("highway", "motorway")) {
rp.forward.remove(EdgeStore.EdgeFlag.ALLOWS_CAR);
rp.forward.remove(EdgeStore.EdgeFlag.NO_THRU_TRAFFIC_CAR);
rp.backward.remove(EdgeStore.EdgeFlag.ALLOWS_CAR);
Expand Down

0 comments on commit 801c41a

Please sign in to comment.