TripUpdate::StopTimeEvent Struct Reference

Timing information for a single predicted event (either arrival or departure). More...

Public Attributes

optional int32 delay = 1
 Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). More...
 
optional int64 time = 2
 Event as absolute time. More...
 
optional int32 uncertainty = 3
 If uncertainty is omitted, it is interpreted as unknown. More...
 
extensions to
 The extensions namespace allows 3rd-party developers to extend the GTFS-realtime specification in order to add and evaluate new features and modifications to the spec. More...
 

Detailed Description

Timing information for a single predicted event (either arrival or departure).

Timing consists of delay and/or estimated time, and uncertainty.

  • delay should be used when the prediction is given relative to some existing schedule in GTFS.
  • time should be given whether there is a predicted schedule or not. If both time and delay are specified, time will take precedence (although normally, time, if given for a scheduled trip, should be equal to scheduled time in GTFS + delay).

Uncertainty applies equally to both time and delay. The uncertainty roughly specifies the expected error in true delay (but note, we don't yet define its precise statistical meaning). It's possible for the uncertainty to be 0, for example for trains that are driven under computer timing control.

Member Data Documentation

optional int32 TripUpdate::StopTimeEvent::delay = 1

Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule).

Delay of 0 means that the vehicle is exactly on time.

optional int64 TripUpdate::StopTimeEvent::time = 2

Event as absolute time.

In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 UTC).

extensions TripUpdate::StopTimeEvent::to

The extensions namespace allows 3rd-party developers to extend the GTFS-realtime specification in order to add and evaluate new features and modifications to the spec.

optional int32 TripUpdate::StopTimeEvent::uncertainty = 3

If uncertainty is omitted, it is interpreted as unknown.

If the prediction is unknown or too uncertain, the delay (or time) field should be empty. In such case, the uncertainty field is ignored. To specify a completely certain prediction, set its uncertainty to 0.


The documentation for this struct was generated from the following file:
  • gtfs-realtime.proto