Skip to content

Commit

Permalink
Force use of SidewalkTraversalPermissionLabeler
Browse files Browse the repository at this point in the history
  • Loading branch information
ansoncfit committed Aug 9, 2024
1 parent e272229 commit 74621ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/conveyal/r5/streets/StreetLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ public StreetLayer() {

public StreetLayer(TransportNetworkConfig config) {
this();
if (config != null && config.traversalPermissionLabeler != null) {
// TODO cleaner mapping
if ("sidewalk".equals(config.traversalPermissionLabeler)) {
if (config != null) {
// FIXME hack to force use of SIdewalkTraversalPermissionLabeler in cluster use
// if ("sidewalk".equals(config.traversalPermissionLabeler)) {
permissionLabeler = new SidewalkTraversalPermissionLabeler();
}
// }
}
}

Expand Down

0 comments on commit 74621ea

Please sign in to comment.