You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gtfs-realtime/spec/en/reference.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -572,26 +572,26 @@ Describes the physical path that a vehicle takes when the shape is not part of t
572
572
573
573
## _message_ Stop
574
574
575
-
Represent a new Stop added to the feed dynamically. All fields are as described in the GTFS-Static specification. Location type of the new stop is assumed to be `0` (routable stop).
575
+
Represent a new Stop added to the feed dynamically. All fields are as described in the (CSV) GTFS specification. Location type of the new stop is assumed to be `0` (routable stop).
|**stop_id**|[string](https://protobuf.dev/programming-guides/proto2/#scalar)| Required | One | Identifier of the shape. Must be different than any `stop_id` defined in the GTFS-Static. |
582
-
|**stop_code**|[TranslatedString](#message-translatedstring)| Required | One | See definition of [stops.stop_code](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
583
-
|**stop_name**|[TranslatedString](#message-translatedstring)| Optional | One | See definition of [stops.stop_name](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
584
-
|**tts_stop_name**|[TranslatedString](#message-translatedstring)| Optional | One | See definition of [stops.tts_stop_name](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
585
-
|**stop_desc**|[TranslatedString](#message-translatedstring)| Optional | One | See definition of [stops.stop_desc](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
586
-
|**stop_lat**|[float](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.stop_lat](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
587
-
|**stop_lon**|[float](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.stop_lon](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
588
-
|**zone_id**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.zone_id](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
589
-
|**stop_url**|[TranslatedString](#message-translatedstring)| Optional | One | See definition of [stops.stop_url](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
590
-
|**parent_station**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.parent_station](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
591
-
|**stop_timezone**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.stop_timezone](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
592
-
|**wheelchair_boarding**|[WheelchairBoarding](#enum-wheelchairboarding)| Optional | One | See definition of [stops.wheelchair_boarding](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
593
-
|**level_id**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.level_id](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
594
-
|**platform_code**|[TranslatedString](#message-translatedstring)| Optional | One | See definition of [stops.platform_code](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in GTFS-Static. |
581
+
|**stop_id**|[string](https://protobuf.dev/programming-guides/proto2/#scalar)| Required | One | Identifier of the shape. Must be different than any `stop_id` defined in the (CSV) GTFS. |
582
+
|**stop_code**|[TranslatedString](#message-translatedstring)| Required | One | See definition of [stops.stop_code](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
583
+
|**stop_name**|[TranslatedString](#message-translatedstring)| Optional | One | See definition of [stops.stop_name](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
584
+
|**tts_stop_name**|[TranslatedString](#message-translatedstring)| Optional | One | See definition of [stops.tts_stop_name](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
585
+
|**stop_desc**|[TranslatedString](#message-translatedstring)| Optional | One | See definition of [stops.stop_desc](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
586
+
|**stop_lat**|[float](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.stop_lat](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
587
+
|**stop_lon**|[float](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.stop_lon](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
588
+
|**zone_id**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.zone_id](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
589
+
|**stop_url**|[TranslatedString](#message-translatedstring)| Optional | One | See definition of [stops.stop_url](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
590
+
|**parent_station**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.parent_station](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
591
+
|**stop_timezone**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.stop_timezone](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
592
+
|**wheelchair_boarding**|[WheelchairBoarding](#enum-wheelchairboarding)| Optional | One | See definition of [stops.wheelchair_boarding](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
593
+
|**level_id**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | See definition of [stops.level_id](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
594
+
|**platform_code**|[TranslatedString](#message-translatedstring)| Optional | One | See definition of [stops.platform_code](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stopstxt) in (CSV) GTFS. |
595
595
596
596
## _enum_ WheelchairBoarding
597
597
@@ -605,7 +605,7 @@ Represent a new Stop added to the feed dynamically. All fields are as described
605
605
606
606
## _message_ TripModifications
607
607
608
-
A `TripModifications` message identifies a list of similar `trip_ids` from the GTFS-Static sharing the same stop pattern, which are all affected by a particular modification, like a detour. The modification is in effect on all of the listed service_dates, until it is removed from the feed. On any given service date, a trip MUST NOT be assigned to more than one `TripModifications` object.
608
+
A `TripModifications` message identifies a list of similar `trip_ids` from the (CSV) GTFS sharing the same stop pattern, which are all affected by a particular modification, like a detour. The modification is in effect on all of the listed service_dates, until it is removed from the feed. On any given service date, a trip MUST NOT be assigned to more than one `TripModifications` object.
609
609
610
610
There MAY be multiple `TripModifications` for a given stop pattern. It may be desirable to split the trips into multiple modifications e.g. if the `propagated_modification_delay` changes significantly, over the course of the detour.
611
611
@@ -621,10 +621,10 @@ The frequency of data updates is expected to be approximately hourly (~24 times/
|**modifications_id**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Required | One | An arbitrary string to identify this detour. The `modifications_id` MUST be unique for all currently active detours. The ID of each replacement trip is generated by concatenating `modifications_id` + ‘_’ + `trip_id`. |
624
-
|**trip_ids**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Required | Many | A list of trips_ids from the GTFS-Static affected by this detour. All trips linked by those trip_ids MUST have the same stop pattern. Two trips have the same stop pattern, if they visit the same stops in the same order, and have identical stop sequences. If the value `start_times` is set, a maximum of one trip_id can be listed. |
624
+
|**trip_ids**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Required | Many | A list of trips_ids from the (CSV) GTFS affected by this detour. All trips linked by those trip_ids MUST have the same stop pattern. Two trips have the same stop pattern, if they visit the same stops in the same order, and have identical stop sequences. If the value `start_times` is set, a maximum of one trip_id can be listed. |
625
625
|**start_times**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | Many | A list of start times in the real-time trip descriptor for the trip_id defined in trip_ids. Useful to target multiple departures of a trip_id in a frequency-based trip. |
626
626
|**service_dates**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Required | Many | Dates on which the detour occurs, in the YYYYMMDD format. A trip_id will only be modified if it runs on a given service date; the trip IS NOT required to run on all of the service dates. Producers SHOULD only transmit detours occurring within the next week. |
627
-
|**shape_id**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | The ID of the new shape for the modified trips. May refer to a new shape added using a GTFS-RT Shape message, or to an existing shape defined in the GTFS-Static feed’s shapes.txt. |
627
+
|**shape_id**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | The ID of the new shape for the modified trips. May refer to a new shape added using a GTFS-RT Shape message, or to an existing shape defined in the (CSV) GTFS feed’s shapes.txt. |
628
628
|**modifications**|[string](#message-modification)| Required | Many | A list of modifications to apply to the affected trips. |
629
629
630
630
## _message_ Modification
@@ -644,7 +644,7 @@ _Propagated detour delays affect all stops following the end of a modification.
|**start_stop_sequence**|[uint32](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Required | One | The stop sequence value from the GTFS-Static of the first stop of the original trip that is to be affected by this modification. |
647
+
|**start_stop_sequence**|[uint32](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Required | One | The stop sequence value from the (CSV) GTFS of the first stop of the original trip that is to be affected by this modification. |
648
648
|**num_stops_replaced**|[uint32](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Required | One | The number of stops which are canceled and replaced by the `new_stops`. May be zero to indicate no skipped stops. |
649
649
|**propagated_modification_delay**|[int32](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | The number of seconds of delay to add to all departure and arrival times following the end of this modification. Can be a positive or negative number. If multiple modifications apply to the same trip, the delays accumulate as the trip advances. <br/><br/>If the value is not supplied, consumers MAY interpolate or infer the `propagated_modification_delay` based on other data. |
650
650
|**new_stops**|[ReplacementStop](#message-replacementstop)| Optional | Many | A list of replacement stops, replacing those of the original trip. The length of the new stop times may be less, the same, or greater than the number of replaced stop times. |
@@ -653,7 +653,7 @@ _Propagated detour delays affect all stops following the end of a modification.
653
653
654
654
Each `ReplacementStop` message acts as a template for generating a new stop time in each modified trip. The generated stop time will have the specified `stop_id`.
655
655
The `arrival_time` is calculated from a reference stop in the original trip, plus the offset in `travel_time_to_stop`. The `departure_time` always equals the `arrival_time`.
656
-
The optional fields of [`stop_times.txt`](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stop_timestxt) in the GTFS-Static specification are all set to their default values.
656
+
The optional fields of [`stop_times.txt`](https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#stop_timestxt) in the (CSV) GTFS specification are all set to their default values.
657
657
658
658

659
659
_If a modification affects the first stop of the trip, that stop also serves as the reference stop of the modification._
@@ -663,5 +663,5 @@ _If a modification affects the first stop of the trip, that stop also serves as
|**stop_id**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Required | One | The replacement stop ID which will now be visited by the trip. May refer to a new stop added using a GTFS-RT `Stop` message, or to an existing stop defined in the GTFS-Static feed’s `stops.txt`. The stop MUST have `location_type=0` (routable stops). |
666
+
|**stop_id**|[string](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Required | One | The replacement stop ID which will now be visited by the trip. May refer to a new stop added using a GTFS-RT `Stop` message, or to an existing stop defined in the (CSV) GTFS feed’s `stops.txt`. The stop MUST have `location_type=0` (routable stops). |
667
667
|**travel_time_to_stop**|[int32](https://developers.google.com/protocol-buffers/docs/proto#scalar)| Optional | One | The difference in seconds between the arrival time at this stop and the arrival time at the reference stop. The reference stop is the stop prior to `start_stop_sequence`. If the modification begins at the first stop of the trip, then the first stop of the trip is the reference stop. <br/><br/>This value MUST be monotonically increasing and may only be a negative number if the first stop of the original trip is the reference stop. <br/><br/>If the value is not supplied, consumers MAY interpolate or infer the `travel_time_to_stop` based on other data. |
0 commit comments