FeedEntity Struct Reference

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

Public Attributes

required string id = 1
 The ids are used only to provide incrementality support. More...
 
optional bool is_deleted = 2 [default = false]
 Whether this entity is to be deleted. More...
 
optional TripUpdate trip_update = 3
 Data about the entity itself. More...
 
optional VehiclePosition vehicle = 4
 
optional Alert alert = 5
 
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

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

Member Data Documentation

required string FeedEntity::id = 1

The ids are used only to provide incrementality support.

The id should be unique within a FeedMessage. Consequent FeedMessages may contain FeedEntities with the same id. In case of a DIFFERENTIAL update the new FeedEntity with some id will replace the old FeedEntity with the same id (or delete it - see is_deleted below). The actual GTFS entities (e.g. stations, routes, trips) referenced by the feed must be specified by explicit selectors (see EntitySelector below for more info).

optional bool FeedEntity::is_deleted = 2 [default = false]

Whether this entity is to be deleted.

Relevant only for incremental fetches.

extensions FeedEntity::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 TripUpdate FeedEntity::trip_update = 3

Data about the entity itself.

Exactly one of the following fields must be present (unless the entity is being deleted).


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