From 8993a244f3e90ebac5654d669adbfdf69a70be2d Mon Sep 17 00:00:00 2001 From: Zsombor Welker Date: Mon, 25 Jul 2022 14:49:40 +0200 Subject: [PATCH] Add WheelchairAccessible documentation (#340) --- gtfs-realtime/proto/gtfs-realtime.proto | 20 ++++++++++++++++++++ gtfs-realtime/spec/en/reference.md | 16 ++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/gtfs-realtime/proto/gtfs-realtime.proto b/gtfs-realtime/proto/gtfs-realtime.proto index 7672a94b..21cc9a0f 100644 --- a/gtfs-realtime/proto/gtfs-realtime.proto +++ b/gtfs-realtime/proto/gtfs-realtime.proto @@ -843,6 +843,26 @@ message VehicleDescriptor { // The license plate of the vehicle. optional string license_plate = 3; + enum WheelchairAccessible { + // The trip doesn't have information about wheelchair accessibility. + // This is the **default** behavior. If the static GTFS contains a + // _wheelchair_accessible_ value, it won't be overwritten. + NO_VALUE = 0; + + // The trip has no accessibility value present. + // This value will overwrite the value from the GTFS. + UNKNOWN = 1; + + // The trip is wheelchair accessible. + // This value will overwrite the value from the GTFS. + WHEELCHAIR_ACCESSIBLE = 2; + + // The trip is **not** wheelchair accessible. + // This value will overwrite the value from the GTFS. + WHEELCHAIR_INACCESSIBLE = 3; + } + optional WheelchairAccessible wheelchair_accessible = 4 [default = NO_VALUE]; + // 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. diff --git a/gtfs-realtime/spec/en/reference.md b/gtfs-realtime/spec/en/reference.md index f5a92de5..95d05d2b 100644 --- a/gtfs-realtime/spec/en/reference.md +++ b/gtfs-realtime/spec/en/reference.md @@ -46,6 +46,7 @@ Fields labeled as **experimental** are subject to change and not yet formally ad * [TripDescriptor](#message-tripdescriptor) * [ScheduleRelationship](#enum-schedulerelationship-1) * [VehicleDescriptor](#message-vehicledescriptor) + * [WheelchairAccessible](#enum-wheelchairaccessible) * [StopTimeUpdate](#message-stoptimeupdate) * [StopTimeEvent](#message-stoptimeevent) * [ScheduleRelationship](#enum-schedulerelationship) @@ -55,6 +56,7 @@ Fields labeled as **experimental** are subject to change and not yet formally ad * [TripDescriptor](#message-tripdescriptor) * [ScheduleRelationship](#enum-schedulerelationship-1) * [VehicleDescriptor](#message-vehicledescriptor) + * [WheelchairAccessible](#enum-wheelchairaccessible) * [Position](#message-position) * [VehicleStopStatus](#enum-vehiclestopstatus) * [CongestionLevel](#enum-congestionlevel) @@ -474,6 +476,20 @@ Identification information for the vehicle performing the trip. | **id** | [string](https://developers.google.com/protocol-buffers/docs/proto#scalar) | Optional | One | Internal system identification of the vehicle. Should be **unique** per vehicle, and is used for tracking the vehicle as it proceeds through the system. This id should not be made visible to the end-user; for that purpose use the **label** field | | **label** | [string](https://developers.google.com/protocol-buffers/docs/proto#scalar) | Optional | One | User visible label, i.e., something that must be shown to the passenger to help identify the correct vehicle. | | **license_plate** | [string](https://developers.google.com/protocol-buffers/docs/proto#scalar) | Optional | One | The license plate of the vehicle. | +| **wheelchair_accessible** | [WheelchairAccessible](#enum-wheelchairaccessible) | Optional | One | If provided, can overwrite the *wheelchair_accessible* value from the static GTFS. | + +## _enum_ WheelchairAccessible + +If a particuliar trip is accessible to wheelchair. When available, this value should overwrite the _wheelchair_accessible_ value from the static GTFS. + +#### Values + +| _**Value**_ | _**Comment**_ | +|-------------|---------------| +| **NO_VALUE** | The trip doesn't have information about wheelchair accessibility. This is the **default** behavior. If the static GTFS contains a _wheelchair_accessible_ value, it won't be overwritten. | +| **UNKNOWN** | The trip has no accessibility value present. This value will overwrite the value from the GTFS. | +| **WHEELCHAIR_ACCESSIBLE** | The trip is wheelchair accessible. This value will overwrite the value from the GTFS. | +| **WHEELCHAIR_INACCESSIBLE** | The trip is **not** wheelchair accessible. This value will overwrite the value from the GTFS. | ## _message_ EntitySelector