Skip to content

Commit 039cc70

Browse files
committed
hack: use SpeedMatcher via ShapefileLts mod
1 parent 2564cb1 commit 039cc70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/conveyal/r5/analyst/scenario/ShapefileLts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.conveyal.analysis.datasource.DataSourceException;
55
import com.conveyal.file.FileStorageFormat;
66
import com.conveyal.file.FileStorageKey;
7-
import com.conveyal.r5.shapefile.LtsMatcher;
7+
import com.conveyal.r5.shapefile.SpeedMatcher;
88
import com.conveyal.r5.transit.TransportNetwork;
99
import com.conveyal.r5.transit.TransportNetworkCache;
1010
import com.conveyal.r5.util.ExceptionUtils;
@@ -56,7 +56,7 @@ public boolean apply (TransportNetwork network) {
5656
// Replicate the entire flags array so we can write to it (following copy-on-write policy).
5757
// Otherwise the TIntAugmentedList only allows extending the base graph.
5858
network.streetLayer.edgeStore.flags = new TIntArrayList(network.streetLayer.edgeStore.flags);
59-
LtsMatcher shapefileMatcher = new LtsMatcher(network.streetLayer);
59+
SpeedMatcher shapefileMatcher = new SpeedMatcher(network.streetLayer);
6060
try {
6161
shapefileMatcher.match(localFile.getAbsolutePath(), ltsAttribute);
6262
} catch (Exception e) {

0 commit comments

Comments
 (0)