Allow specifying both the scheduled time and delay in StopTimeEvent for added and duplicated trips. #490
Labels
Change: Addition
New function proposed to the specification.
Change: Clarification
Revisions of the current specification to improve understanding.
GTFS Realtime
Issues and Pull Requests that focus on GTFS Realtime
Support: Needs Feedback
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.
** For scheduled trips, time will take precedence (although normally, time, if given for a scheduled trip, should be equal to scheduled time in GTFS + delay).
** For added and duplicated trips, if a delay is also specified, it represents the actual time for the new trip for which the scheduled time can be calculated
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
The text was updated successfully, but these errors were encountered: