From b6d6134be06a124c2e0c4daf4d0522bbddafa4ac Mon Sep 17 00:00:00 2001 From: Lukas Connolly Date: Sat, 14 Dec 2024 00:20:57 +0100 Subject: [PATCH] FIX: 158 - Remove checks if stop has been added in when creating transfers. --- .../gtfs/raptor/convert/GtfsToRaptorConverter.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/ch/naviqore/service/gtfs/raptor/convert/GtfsToRaptorConverter.java b/src/main/java/ch/naviqore/service/gtfs/raptor/convert/GtfsToRaptorConverter.java index 117307ea..cd514a7d 100644 --- a/src/main/java/ch/naviqore/service/gtfs/raptor/convert/GtfsToRaptorConverter.java +++ b/src/main/java/ch/naviqore/service/gtfs/raptor/convert/GtfsToRaptorConverter.java @@ -244,14 +244,10 @@ private Collection expandTransfersFromStop(Stop stop Stop toStop = transfer.getToStop(); // only add new transfers if the to stop also has departures, else the raptor router does not care about // this stop and the builder will throw an exception. - if (addedStops.contains(toStop.getId())) { - otherTransfers.add(new TransferGenerator.Transfer(stop, toStop, transfer.getMinTransferTime().get())); - } + otherTransfers.add(new TransferGenerator.Transfer(stop, toStop, transfer.getMinTransferTime().get())); for (Stop childToStop : toStop.getChildren()) { - if (addedStops.contains(childToStop.getId())) { - parentTransfers.put(childToStop, - new TransferGenerator.Transfer(stop, childToStop, transfer.getMinTransferTime().get())); - } + parentTransfers.put(childToStop, + new TransferGenerator.Transfer(stop, childToStop, transfer.getMinTransferTime().get())); } }