Skip to content

Commit

Permalink
ENH: NAV-40 - Allow getting raptor builder with custom same station t…
Browse files Browse the repository at this point in the history
…ransfer time.
  • Loading branch information
clukas1 committed Jun 7, 2024
1 parent 6741f54 commit 521e088
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/ch/naviqore/raptor/Raptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public static RaptorBuilder builder() {
return new RaptorBuilder();
}

public static RaptorBuilder builder(int sameStationTransferTime) {
return new RaptorBuilder(sameStationTransferTime);
}

public List<Connection> routeEarliestArrival(String sourceStopId, String targetStopId, int departureTime) {
return routeEarliestArrival(createStopMap(sourceStopId, departureTime), createStopMap(targetStopId, 0));
}
Expand Down

0 comments on commit 521e088

Please sign in to comment.