Open miklcct opened 1 month ago
I have made an implementation for ADDED
trips for OpenTripPlanner in
https://github.com/Jnction/OpenTripPlanner/tree/delay_on_added_trips
OpenTripPlanner does not support DUPLICATED
trips yet.
I have changed the proposal for ADDED
and DUPLICATED
trips to use the actual time at the time
field. This retains compatibility for consumers which doesn't support delay
in these trips.
Describe the problem
The GTFS-RT specification for
StopTimeEvent
specifies that:However, for an
ADDED
orDUPLICATED
trip, there is currently no means to specify the scheduled time of the added or duplicate trip (for example, if the duplicated trip is scheduled to run slower than the original).Use cases
Proposed solution
Change the definition of the message
StopTimeEvent
in GTFS-RT to be:Timing information for a single predicted event (either arrival or departure). Timing consists of delay and/or estimated time, and uncertainty.
If
TripDescriptor.schedule_relationship
isSCHEDULED
, the delay is measured against the GTFS static schedule.If
TripDescriptor.schedule_relationship
is eitherADDED
orDUPLICATED
, the delay is included in the actualtime
below, which must be provided.If
TripDescriptor.schedule_relationship
isUNSCHEDULED
, this field must be empty.Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.
If
TripDescriptor.schedule_relationship
is eitherADDED
orDUPLICATED
, and both delay and time are specified, this is the actual time where the scheduled time can be calculated by subtracting thedelay
.If
TripDescriptor.schedule_relationship
isSCHEDULED
, this value overrides the time calculated bydelay
.Either delay or time must be provided within a StopTimeEvent - both fields cannot be empty.
Additional information
No response