Skip to content

Commit

Permalink
FIX: 158 - Remove checks if stop has been added in when creating tran…
Browse files Browse the repository at this point in the history
…sfers.
  • Loading branch information
clukas1 committed Dec 13, 2024
1 parent 7cfb5e9 commit b6d6134
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,10 @@ private Collection<TransferGenerator.Transfer> 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()));
}
}

Expand Down

0 comments on commit b6d6134

Please sign in to comment.