package transit_realtime

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message Alert

gtfs-realtime.proto:577

An alert, indicating some sort of incident in the public transit network.

Used in: FeedEntity

enum Alert.Cause

gtfs-realtime.proto:587

Cause of this alert. If cause_detail is included, then Cause must also be included.

Used in: Alert

enum Alert.Effect

gtfs-realtime.proto:604

What is the effect of this problem on the affected entity. If effect_detail is included, then Effect must also be included.

Used in: Alert

enum Alert.SeverityLevel

gtfs-realtime.proto:641

Severity of this alert.

Used in: Alert

message EntitySelector

gtfs-realtime.proto:896

A selector for an entity in a GTFS feed.

Used in: Alert

message FeedEntity

gtfs-realtime.proto:86

A definition (or update) of an entity in the transit feed.

Used in: FeedMessage

message FeedHeader

gtfs-realtime.proto:55

Metadata about a feed, included in feed messages.

Used in: FeedMessage

enum FeedHeader.Incrementality

gtfs-realtime.proto:65

Determines whether the current fetch is incremental. Currently, DIFFERENTIAL mode is unsupported and behavior is unspecified for feeds that use this mode. There are discussions on the GTFS Realtime mailing list around fully specifying the behavior of DIFFERENTIAL mode and the documentation will be updated when those discussions are finalized.

Used in: FeedHeader

message FeedMessage

gtfs-realtime.proto:38

The contents of a feed message. A feed is a continuous stream of feed messages. Each message in the stream is obtained as a response to an appropriate HTTP GET request. A realtime feed is always defined with relation to an existing GTFS feed. All the entity ids are resolved with respect to the GTFS feed. Note that "required" and "optional" as stated in this file refer to Protocol Buffer cardinality, not semantic cardinality. See reference.md at https://github.com/google/transit/tree/master/gtfs-realtime for field semantic cardinality.

message Position

gtfs-realtime.proto:705

A position.

Used in: VehiclePosition

message Shape

gtfs-realtime.proto:1014

Describes the physical path that a vehicle takes when it's not part of the (CSV) GTFS, such as for a detour. Shapes belong to Trips, and consist of a sequence of shape points. Tracing the points in order provides the path of the vehicle. Shapes do not need to intercept the location of Stops exactly, but all Stops on a trip should lie within a small distance of the shape for that trip, i.e. close to straight line segments connecting the shape points NOTE: This message is still experimental, and subject to change. It may be formally adopted in the future.

Used in: FeedEntity

message StopTimePropertiesExtension

mfdz-realtime-extensions.proto:20

enum StopTimePropertiesExtension.DropOffPickupType

mfdz-realtime-extensions.proto:21

Used in: StopTimePropertiesExtension

message TimeRange

gtfs-realtime.proto:684

A time interval. The interval is considered active at time 't' if 't' is greater than or equal to the start time and less than the end time.

Used in: Alert

message TranslatedImage

gtfs-realtime.proto:970

An internationalized image containing per-language versions of a URL linking to an image along with meta information Only one of the images from a message will be retained by consumers. The resolution proceeds as follows: 1. If the UI language matches the language code of a translation, the first matching translation is picked. 2. If a default UI language (e.g., English) matches the language code of a translation, the first matching translation is picked. 3. If some translation has an unspecified language code, that translation is picked. NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.

Used in: Alert

message TranslatedImage.LocalizedImage

gtfs-realtime.proto:971

Used in: TranslatedImage

message TranslatedString

gtfs-realtime.proto:930

An internationalized message containing per-language versions of a snippet of text or a URL. One of the strings from a message will be picked up. The resolution proceeds as follows: 1. If the UI language matches the language code of a translation, the first matching translation is picked. 2. If a default UI language (e.g., English) matches the language code of a translation, the first matching translation is picked. 3. If some translation has an unspecified language code, that translation is picked.

Used in: Alert

message TranslatedString.Translation

gtfs-realtime.proto:931

Used in: TranslatedString

message TripDescriptor

gtfs-realtime.proto:742

A descriptor that identifies an instance of a GTFS trip, or all instances of a trip along a route. - To specify a single trip instance, the trip_id (and if necessary, start_time) is set. If route_id is also set, then it should be same as one that the given trip corresponds to. - To specify all the trips along a given route, only the route_id should be set. Note that if the trip_id is not known, then stop sequence ids in TripUpdate are not sufficient, and stop_ids must be provided as well. In addition, absolute arrival/departure times must be provided.

Used in: EntitySelector, TripUpdate, VehiclePosition

enum TripDescriptor.ScheduleRelationship

gtfs-realtime.proto:789

The relation between this trip and the static schedule. If a trip is done in accordance with temporary schedule, not reflected in GTFS, then it shouldn't be marked as SCHEDULED, but likely as ADDED.

Used in: TripDescriptor

message TripDescriptorExtension

mfdz-realtime-extensions.proto:8

message TripUpdate

gtfs-realtime.proto:149

Realtime update of the progress of a vehicle along a trip. Depending on the value of ScheduleRelationship, a TripUpdate can specify: - A trip that proceeds along the schedule. - A trip that proceeds along a route but has no fixed schedule. - A trip that have been added or removed with regard to schedule. The updates can be for future, predicted arrival/departure events, or for past events that already occurred. Normally, updates should get more precise and more certain (see uncertainty below) as the events gets closer to current time. Even if that is not possible, the information for past events should be precise and certain. In particular, if an update points to time in the past but its update's uncertainty is not 0, the client should conclude that the update is a (wrong) prediction and that the trip has not completed yet. Note that the update can describe a trip that is already completed. To this end, it is enough to provide an update for the last stop of the trip. If the time of that is in the past, the client will conclude from that that the whole trip is in the past (it is possible, although inconsequential, to also provide updates for preceding stops). This option is most relevant for a trip that has completed ahead of schedule, but according to the schedule, the trip is still proceeding at the current time. Removing the updates for this trip could make the client assume that the trip is still proceeding. Note that the feed provider is allowed, but not required, to purge past updates - this is one case where this would be practically useful.

Used in: FeedEntity

message TripUpdate.StopTimeEvent

gtfs-realtime.proto:174

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.

Used in: StopTimeUpdate

message TripUpdate.StopTimeUpdate

gtfs-realtime.proto:203

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.

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.

Used in: TripUpdate

enum TripUpdate.StopTimeUpdate.ScheduleRelationship

gtfs-realtime.proto:223

The relation between the StopTimeEvents and the static schedule.

Used in: StopTimeUpdate

message TripUpdate.StopTimeUpdate.StopTimeProperties

gtfs-realtime.proto:257

Provides the updated values for the stop time. NOTE: This message is still experimental, and subject to change. It may be formally adopted in the future.

Used in: StopTimeUpdate

message TripUpdate.TripProperties

gtfs-realtime.proto:345

Defines updated properties of the trip, such as a new shape_id when there is a detour. Or defines the trip_id, start_date, and start_time of a DUPLICATED trip. NOTE: This message is still experimental, and subject to change. It may be formally adopted in the future.

Used in: TripUpdate

message VehicleDescriptor

gtfs-realtime.proto:853

Identification information for the vehicle performing the trip.

Used in: TripUpdate, VehiclePosition

enum VehicleDescriptor.WheelchairAccessible

gtfs-realtime.proto:866

Used in: VehicleDescriptor

message VehiclePosition

gtfs-realtime.proto:400

Realtime positioning information for a given vehicle.

Used in: FeedEntity

message VehiclePosition.CarriageDetails

gtfs-realtime.proto:514

Carriage specific details, used for vehicles composed of several carriages This message/field is still experimental, and subject to change. It may be formally adopted in the future.

Used in: VehiclePosition

enum VehiclePosition.CongestionLevel

gtfs-realtime.proto:441

Congestion level that is affecting this vehicle.

Used in: VehiclePosition

enum VehiclePosition.OccupancyStatus

gtfs-realtime.proto:458

The state of passenger occupancy for the vehicle or carriage. Individual producers may not publish all OccupancyStatus values. Therefore, consumers must not assume that the OccupancyStatus values follow a linear scale. Consumers should represent OccupancyStatus values as the state indicated and intended by the producer. Likewise, producers must use OccupancyStatus values that correspond to actual vehicle occupancy states. For describing passenger occupancy levels on a linear scale, see `occupancy_percentage`. This field is still experimental, and subject to change. It may be formally adopted in the future.

Used in: TripUpdate.StopTimeUpdate, VehiclePosition, CarriageDetails

enum VehiclePosition.VehicleStopStatus

gtfs-realtime.proto:421

Used in: VehiclePosition