Skip to content

Commit f0178e0

Browse files
committed
island pruning for stops without modes
no modes are not considered as only ferries
1 parent c1a9196 commit f0178e0

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/opentripplanner/graph_builder/module/islandpruning

1 file changed

+1
-1
lines changed

src/main/java/org/opentripplanner/graph_builder/module/islandpruning/PruneIslands.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ private int processIslands(
257257
TransitStopVertex v = (TransitStopVertex) vIter.next();
258258
Set<TransitMode> modes = v.getModes();
259259
// test if stop has other transit modes than FERRY
260-
if (!modes.isEmpty() && !modes.contains(TransitMode.FERRY)) {
260+
if (modes.isEmpty() || !modes.contains(TransitMode.FERRY)) {
261261
onlyFerry = false;
262262
break;
263263
}

0 commit comments

Comments
 (0)