From 74621eaa4b4e376ff0c0b2bc435836f162f2cc50 Mon Sep 17 00:00:00 2001 From: ansons Date: Fri, 9 Aug 2024 16:23:45 -0400 Subject: [PATCH] Force use of SidewalkTraversalPermissionLabeler --- src/main/java/com/conveyal/r5/streets/StreetLayer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/conveyal/r5/streets/StreetLayer.java b/src/main/java/com/conveyal/r5/streets/StreetLayer.java index 2fbc3c709..a4597794d 100644 --- a/src/main/java/com/conveyal/r5/streets/StreetLayer.java +++ b/src/main/java/com/conveyal/r5/streets/StreetLayer.java @@ -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(); - } + // } } }