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
|`vehicle_state`| Enum | Required | see [Vehicle States][vehicle-states]|
169
-
|`event_types`| Enum[]| Required | see [Vehicle Events][vehicle-events]|
170
-
|`timestamp`|[timestamp][ts]| Required | Date of last event update |
171
-
|`telemetry`|[Telemetry](#telemetry-data)| Required | Single point of telemetry |
172
-
|`event_geographies`| UUID[]| Optional |**[Beta feature](/general-information.md#beta-features):***Yes (as of 1.1.0)*. Array of Geography UUIDs consisting of every Geography that contains the location of the event. See [Geography Driven Events][geography-driven-events]. Required if `telemetry` is not present. |
173
-
|`trip_id`| UUID | Conditionally required | UUID provided by Operator to uniquely identify the trip. See `trip_id` requirements for each [mode][modes]. |
163
+
|`data`|[EventData](#vehicle-event-data)[]| Required | An array of [Vehicle Event Data](#vehicle-event-data) objects. |
|`bad_param`| A validation error occurred | Array of parameters with errors |
186
180
|`missing_param`| A required parameter is missing | Array of missing parameters |
187
-
|`unregistered`|Vehicle is not registered ||
181
+
|`unregistered`|Some of the devices are not registered ||
188
182
189
183
[Top][toc]
190
184
191
-
## Vehicle - Telemetry
185
+
## Vehicles - Telemetry
192
186
193
187
The vehicle `/telemetry` endpoint allows a Provider to send vehicle telemetry data in a batch for any number of vehicles in the fleet.
194
188
@@ -289,50 +283,15 @@ If `stop_id` is specified, `GET` will return an array with a single stop record,
289
283
290
284
[Top][toc]
291
285
292
-
## Reservation Type
293
-
294
-
The reservation type enum expresses the urgency of a given reservation. This can be useful when attempting to quantify metrics around trips: for example, computing passenger wait-time. In the `on_demand` case, passenger wait-time may be quantified by the delta between the `reservation_time`, and the pick-up time; however, in the `scheduled` case, the wait time may be quantified based on the delta between the `scheduled_trip_start_time` found in the Trips payload, and the actual `trip_start_time`.
| payment_methods |`string[]`| Optional | Breakdown of different payment methods used for a trip, e.g. cash, card, equity_program |
326
-
327
-
[Top][toc]
328
-
329
286
## Trip Metadata
330
287
331
288
The Trips endpoint serves two purposes:
332
289
333
290
* Definitively indicating that a Trip (a sequence of events linked by a trip_id) has been completed. For example, from analyzing only the raw Vehicle Events feed, if a trip crosses an Agency's jurisdictional boundaries but does not end within the jurisdiction (last event_type seen is a `leave_jurisdiction`), this can result in a 'dangling trip'. The Trips endpoint satisfies this concern, by acting as a final indication that a trip has been finished, even if it ends outside of jurisdictional boundaries; if a trip has intersected an Agency's jurisdictional boundaries at all during a trip, it is expected that a Provider will send a Trip payload to the Agency following the trip's completion.
334
291
* Providing information to an Agency regarding an entire trip, without extending any of the Vehicle Event payloads, or changing any requirements on when Vehicle Events should be sent.
335
292
293
+
WORK IN PROGRESS - THIS WILL BE UNIFIED WITH TRIP DATA IN `general_information`
294
+
336
295
| Field | Type | Required/Optional | Field Description |
Copy file name to clipboardExpand all lines: general-information.md
+43-3Lines changed: 43 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -236,9 +236,47 @@ A Trip is defined by the following structure:
236
236
|`accuracy`| Integer | Required | The approximate level of accuracy, in meters, of `Points` within `route`|
237
237
|`publication_time`|[timestamp][ts]| Optional | Date/time that trip became available through the trips endpoint |
238
238
|`parking_verification_url`| String | Optional | A URL to a photo (or other evidence) of proper vehicle parking |
239
-
|`standard_cost`| Integer | Optional | The cost, in the currency defined in `currency`, that it would cost to perform that trip in the standard operation of the System (see [Costs & Currencies][costs-and-currencies]) |
240
-
|`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]) |
241
-
|`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]) |
239
+
|`fare`|[Fare](#fare)| Conditionally Required | Fare for the trip (required if trip was completed) |
240
+
|`reservation_method`| Enum | Required | Way the customer created their reservation, see [reservation-method](#reservation-method)|
241
+
|`reservation_time`| Timestamp | Required | Time the customer *requested* a reservation |
242
+
|`reservation_type`| Enum | Required | Type of reservation, see [reservation-type](#reservation-type)|
243
+
244
+
[Top][toc]
245
+
246
+
## Reservation Type
247
+
248
+
The reservation type enum expresses the urgency of a given reservation. This can be useful when attempting to quantify metrics around trips: for example, computing passenger wait-time. In the `on_demand` case, passenger wait-time may be quantified by the delta between the `reservation_time`, and the pick-up time; however, in the `scheduled` case, the wait time may be quantified based on the delta between the `scheduled_trip_start_time` found in the Trips payload, and the actual `trip_start_time`.
| payment_methods |`string[]`| Optional | Breakdown of different payment methods used for a trip, e.g. cash, card, equity_program |
242
280
243
281
[Top][toc]
244
282
@@ -265,6 +303,8 @@ Events represent changes in vehicle status.
265
303
266
304
(?) Do we still want `event_geographies`?
267
305
306
+
(?) Add `journey_id`(s)?
307
+
268
308
### Event Times
269
309
270
310
Because of the unreliability of device clocks, the Provider is unlikely to know with total confidence what time an event occurred at. However, Providers are responsible for constructing as accurate a timeline as possible. Most importantly, the order of the timestamps for a particular device's events must reflect the Provider's best understanding of the order in which those events occurred.
0 commit comments