TripUpdate::StopTimeUpdate Struct Reference

Realtime update for arrival and/or departure events for a given stop on a trip. More...

Public Types

enum  ScheduleRelationship { SCHEDULED = 0, SKIPPED = 1, NO_DATA = 2 }
 The relation between this StopTime and the static schedule. More...
 

Public Attributes

optional uint32 stop_sequence = 1
 The update is linked to a specific stop either through stop_sequence or stop_id, so one of the fields below must necessarily be set. More...
 
optional string stop_id = 4
 Must be the same as in stops.txt in the corresponding GTFS feed.
 
optional StopTimeEvent arrival = 2
 
optional StopTimeEvent departure = 3
 
optional ScheduleRelationship schedule_relationship
 
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

Realtime update for arrival and/or departure events for a given stop on a trip.

Updates can be supplied for both past and future events. The producer is allowed, although not required, to drop past events.

Member Enumeration Documentation

The relation between this StopTime and the static schedule.

Enumerator
SCHEDULED 

The vehicle is proceeding in accordance with its static schedule of stops, although not necessarily according to the times of the schedule.

At least one of arrival and departure must be provided. If the schedule for this stop contains both arrival and departure times then so must this update.

SKIPPED 

The stop is skipped, i.e., the vehicle will not stop at this stop.

Arrival and departure are optional.

NO_DATA 

No data is given for this stop.

The main intention for this value is to give the predictions only for part of a trip, i.e., if the last update for a trip has a NO_DATA specifier, then StopTimes for the rest of the stops in the trip are considered to be unspecified as well. Neither arrival nor departure should be supplied.

Member Data Documentation

optional ScheduleRelationship TripUpdate::StopTimeUpdate::schedule_relationship
Initial value:
= 5
[default = SCHEDULED]
optional uint32 TripUpdate::StopTimeUpdate::stop_sequence = 1

The update is linked to a specific stop either through stop_sequence or stop_id, so one of the fields below must necessarily be set.

See the documentation in TripDescriptor for more information. Must be the same as in stop_times.txt in the corresponding GTFS feed.

extensions TripUpdate::StopTimeUpdate::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.


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