Skip to content

Commit 430ee4f

Browse files
committed
Handle stepFree option consistently
... for ways in the base TranversalPermissionLabeler (by passing the TransportNetworkConfig files as an argument), and for nodes with kerb tags Also, reduce duplicate code
2 parents dee71f5 + 98b072a commit 430ee4f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/com/conveyal/r5/labeling/TestPermissionsLabeler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.conveyal.r5.labeling;
22

3+
import com.conveyal.r5.analyst.cluster.TransportNetworkConfig;
4+
35
/**
46
* This is used for tests. It adds new highway tag highway=nobikenoped which forbids cycling and walking. But allows other things.
57
* Created by mabu on 27.11.2015.
@@ -8,4 +10,8 @@ public class TestPermissionsLabeler extends USTraversalPermissionLabeler {
810
static {
911
addPermissions("highway=nobikenoped", "access=yes;bicycle=no;foot=no");
1012
}
13+
14+
public TestPermissionsLabeler () {
15+
super(null);
16+
}
1117
}

0 commit comments

Comments
 (0)