diff --git a/docs/sandbox/Flex.md b/docs/sandbox/Flex.md index 277e4e617f2..7b08fd7d05f 100644 --- a/docs/sandbox/Flex.md +++ b/docs/sandbox/Flex.md @@ -13,6 +13,17 @@ To enable this turn on `FlexRouting` as a feature in `otp-config.json`. The GTFS feeds must conform to the final, approved version of the draft which has been merged into the [mainline specification](https://gtfs.org/schedule/reference/) in March 2024. +### Experimental features + +This sandbox feature also has experimental support for the following fields: + +- `safe_duration_factor` +- `safe_duration_offset` + +These features are currently [undergoing specification](https://github.com/MobilityData/gtfs-flex/pull/79) +and their definition might change. OTP's implementation will be also be changed so be careful +when relying on this feature. + ## Configuration This feature allows a limited number of config options. To change the configuration, add the diff --git a/src/ext/java/org/opentripplanner/ext/flex/trip/ScheduledDeviatedTrip.java b/src/ext/java/org/opentripplanner/ext/flex/trip/ScheduledDeviatedTrip.java index 0026d98c964..e16e1e5e1f7 100644 --- a/src/ext/java/org/opentripplanner/ext/flex/trip/ScheduledDeviatedTrip.java +++ b/src/ext/java/org/opentripplanner/ext/flex/trip/ScheduledDeviatedTrip.java @@ -176,7 +176,7 @@ public int earliestDepartureTime(int stopIndex) { @Override public int latestArrivalTime( int arrivalTime, - int ignored, + int fromStopIndex, int toStopIndex, int flexTripDurationSeconds ) {