Skip to content

Commit

Permalink
mark new fields as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
miklcct committed Jan 16, 2025
1 parent a2a0dd8 commit aa90291
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
31 changes: 17 additions & 14 deletions gtfs-realtime/proto/gtfs-realtime.proto
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,29 @@ message TripUpdate {
optional string assigned_stop_id = 1;

// The updated headsign of the vehicle at the stop.
// NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
optional string stop_headsign = 2;

enum DropOffPickupType {
// Regularly scheduled pickup/dropoff.
REGULAR = 0;

// No pickup/dropoff available
NONE = 1;

// Must phone agency to arrange pickup/dropoff.
PHONE_AGENCY = 2;

// Must coordinate with driver to arrange pickup/dropoff.
COORDINATE_WITH_DRIVER = 3;
}

// The updated pickup of the vehicle at the stop.
// NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
optional DropOffPickupType pickup_type = 3;

// The updated drop off of the vehicle at the stop.
// NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
optional DropOffPickupType drop_off_type = 4;

// The extensions namespace allows 3rd-party developers to extend the
Expand All @@ -293,20 +310,6 @@ message TripUpdate {

// The following extension IDs are reserved for private use by any organization.
extensions 9000 to 9999;

enum DropOffPickupType {
// Regularly scheduled pickup/dropoff.
REGULAR = 0;

// No pickup/dropoff available
NONE = 1;

// Must phone agency to arrange pickup/dropoff.
PHONE_AGENCY = 2;

// Must coordinate with driver to arrange pickup/dropoff.
COORDINATE_WITH_DRIVER = 3;
}
}

// Realtime updates for certain properties defined within GTFS stop_times.txt
Expand Down
6 changes: 3 additions & 3 deletions gtfs-realtime/spec/en/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ Realtime update for certain properties defined within GTFS stop_times.txt.
| _**Field Name**_ | _**Type**_ | _**Required**_ | _**Cardinality**_ | _**Description**_ |
|------------------|------------|----------------|-------------------|-------------------|
| **assigned_stop_id** | [string](https://protobuf.dev/programming-guides/proto2/#scalar) | Optional | One | Supports real-time stop assignments. Refers to a `stop_id` defined in the GTFS `stops.txt`. <br> The new `assigned_stop_id` should not result in a significantly different trip experience for the end user than the `stop_id` defined in GTFS `stop_times.txt`. In other words, the end user should not view this new `stop_id` as an "unusual change" if the new stop was presented within an app without any additional context. For example, this field is intended to be used for platform assignments by using a `stop_id` that belongs to the same station as the stop originally defined in GTFS `stop_times.txt`. <br> To assign a stop without providing any real-time arrival or departure predictions, populate this field and set `StopTimeUpdate.schedule_relationship = NO_DATA`. <br> If this field is populated, `StopTimeUpdate.stop_sequence` must be populated and `StopTimeUpdate.stop_id` should not be populated. Stop assignments should be reflected in other GTFS-realtime fields as well (e.g., `VehiclePosition.stop_id`). <br><br>**Caution:** this field is still **experimental**, and subject to change. It may be formally adopted in the future. |
| **stop_headsign** | [string](https://protobuf.dev/programming-guides/proto2/#scalar) | Optional | One | The updated headsign of the vehicle at the stop. |
| **drop_off_type** | [DropOffPickupType](#enum-dropoffpickuptype) | Optional | One | The updated drop off of the vehicle at the stop. |
| **pickup_type** | [DropOffPickupType](#enum-dropoffpickuptype) | Optional | One | The updated pickup of the vehicle at the stop. |
| **stop_headsign** | [string](https://protobuf.dev/programming-guides/proto2/#scalar) | Optional | One | The updated headsign of the vehicle at the stop. <br><br>**Caution:** this field is still **experimental**, and subject to change. It may be formally adopted in the future. |
| **drop_off_type** | [DropOffPickupType](#enum-dropoffpickuptype) | Optional | One | The updated drop off of the vehicle at the stop. <br><br>**Caution:** this field is still **experimental**, and subject to change. It may be formally adopted in the future. |
| **pickup_type** | [DropOffPickupType](#enum-dropoffpickuptype) | Optional | One | The updated pickup of the vehicle at the stop. <br><br>**Caution:** this field is still **experimental**, and subject to change. It may be formally adopted in the future. |

## _enum_ DropOffPickupType

Expand Down

0 comments on commit aa90291

Please sign in to comment.