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
Added service id and GTFS integration for to events, trips, and telemetry.
Added stop_sequence to Telemetry.
Signed-off-by: Matthew Marwedel <105882144+matthewmarwedel@users.noreply.github.com>
Copy file name to clipboardExpand all lines: data-types.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,8 @@ Events represent changes in vehicle status.
115
115
|`trip_ids`| UUID[]| Required if Applicable | Trip UUIDs (foreign key to /trips endpoint), required if `event_types` contains `trip_start`, `trip_end`, `trip_cancel`, `trip_enter_jurisdiction`, or `trip_leave_jurisdiction`|
116
116
|`associated_ticket`| String | Optional | Identifier for an associated ticket inside an Agency-maintained 311 or CRM system |
117
117
|`stop_sequence`| Integer | Required if Applicable | Order of stops for a particular trip. The values must increase along the trip, but do not need to be consecutive. |
118
-
|`route_id`| UUID | Required if Applicable | A unique route ID for the associated route and stops |
118
+
|`route_id`| UUID | Required if Applicable | A unique route ID for the associated route and stops. Matches [GTFS](https://gtfs.org/documentation/schedule/reference/)`route_id`|
119
+
|`service_id`| UUID | Required if Applicable | A unique service ID for the set of dates when service is available for a route. Matches [GTFS](https://gtfs.org/documentation/schedule/reference/)`service_id`|
119
120
120
121
### Event Times
121
122
@@ -142,7 +143,9 @@ A standard point of vehicle telemetry. References to latitude and longitude impl
142
143
|`battery_percent`| Integer | Required if Applicable | Percent battery charge of vehicle, expressed between 0 and 100 |
143
144
|`fuel_percent`| Integer | Required if Applicable | Percent fuel in vehicle, expressed between 0 and 100 |
144
145
|`tipped_over`| Boolean | Required if Known | If detectable and known, is the device tipped over or not? Default is 'false'. |
145
-
|`route_id`| UUID | Required if Applicable | A unique route ID for the associated route and stops |
146
+
|`stop_sequence`| Integer | Required if Applicable | Order of stops for a particular trip. The values must increase along the trip, but do not need to be consecutive. |
147
+
|`route_id`| UUID | Required if Applicable | A unique route ID for the associated route and stops. Matches [GTFS](https://gtfs.org/documentation/schedule/reference/)`route_id`|
148
+
|`service_id`| UUID | Required if Applicable | A unique service ID for the set of dates when service is available for a route. Matches [GTFS](https://gtfs.org/documentation/schedule/reference/)`service_id`|
146
149
147
150
### GPS Data
148
151
@@ -241,7 +244,8 @@ A Trip is defined by the following structure:
241
244
|`actual_cost`| Integer | Optional | The actual cost, in the currency defined in `currency`, paid by the customer of the *mobility as a service* provider (see [Costs & Currencies][costs-and-currencies]) |
242
245
|`currency`| String | Optional, USD cents is implied if null.| An [ISO 4217 Alphabetic Currency Code][iso4217] representing the currency of the payee (see [Costs & Currencies][costs-and-currencies]) |
243
246
|`stop_sequence`| Integer | Required if Applicable | Order of stops for a particular trip. The values must increase along the trip, but do not need to be consecutive. |
244
-
|`route_id`| UUID | Required if Applicable | A unique route ID for the associated route and stops |
247
+
|`route_id`| UUID | Required if Applicable | A unique route ID for the associated route and stops. Matches [GTFS](https://gtfs.org/documentation/schedule/reference/)`route_id`|
248
+
|`service_id`| UUID | Required if Applicable | A unique service ID for the set of dates when service is available for a route. Matches [GTFS](https://gtfs.org/documentation/schedule/reference/)`service_id`|
0 commit comments