From 521e088dd84d066feb840751770cd42fe287150b Mon Sep 17 00:00:00 2001 From: Lukas Connolly Date: Fri, 7 Jun 2024 18:23:14 +0200 Subject: [PATCH] ENH: NAV-40 - Allow getting raptor builder with custom same station transfer time. --- src/main/java/ch/naviqore/raptor/Raptor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ch/naviqore/raptor/Raptor.java b/src/main/java/ch/naviqore/raptor/Raptor.java index 722094e0..745a0afe 100644 --- a/src/main/java/ch/naviqore/raptor/Raptor.java +++ b/src/main/java/ch/naviqore/raptor/Raptor.java @@ -39,6 +39,10 @@ public static RaptorBuilder builder() { return new RaptorBuilder(); } + public static RaptorBuilder builder(int sameStationTransferTime) { + return new RaptorBuilder(sameStationTransferTime); + } + public List routeEarliestArrival(String sourceStopId, String targetStopId, int departureTime) { return routeEarliestArrival(createStopMap(sourceStopId, departureTime), createStopMap(targetStopId, 0)); }