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_attributes`| Conditionally Required | Array of [vehicle attributes](/modes/#vehicle-attributes)| Vehicle attributes appropriate for the current [mode][modes]|
101
-
|`battery_capacity`| Integer | Required if Available | Capacity of battery expressed as milliamp hours (mAh) |
102
-
|`fuel_capacity`| Integer | Required if Available | Capacity of fuel tank (liquid, solid, gaseous) expressed in liters |
103
-
104
-
201 Success Response:
93
+
TODO a list of Vehicle records FIXME
94
+
95
+
200 Success Response:
105
96
106
97
_No content returned on success._
107
98
@@ -120,36 +111,6 @@ _No content returned on success._
120
111
121
112
[Top][toc]
122
113
123
-
## Vehicle - Update
124
-
125
-
The `/vehicles` update endpoint is used to update some mutable aspect of a vehicle. For now, only `vehicle_id`.
126
-
127
-
Endpoint: `/vehicles/{device_id}`
128
-
Method: `PUT`
129
-
130
-
Body Params:
131
-
132
-
| Field | Type | Required/Optional | Field Description |
Copy file name to clipboardExpand all lines: data-types.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,8 @@ A vehicle record is as follows:
35
35
36
36
Note that the only mutable field is `vehicle_id`.
37
37
38
+
(?) Move `vehicle_id` into events?
39
+
38
40
[Top][toc]
39
41
40
42
### Propulsion Types
@@ -92,6 +94,7 @@ Events represent changes in vehicle status.
92
94
|`device_id`| UUID | Required | A unique device ID in UUID format |
93
95
|`provider_id`| UUID | Required | A UUID for the Provider, unique within MDS. See MDS [provider list](/providers.csv). |
94
96
|`data_provider_id`| UUID | Optional | If different than `provider_id`, a UUID for the data solution provider managing the data feed in this endpoint. See MDS [provider list](/providers.csv) which includes both service operators and data solution providers. |
97
+
|`event_id`| UUID | Required | A unique event ID |
95
98
|`vehicle_id`| String | Required | A unique vehicle identifier (visible code, license plate, etc), visible on the vehicle itself |
96
99
|`vehicle_state`| Enum | Required | See [vehicle state][vehicle-states] table |
97
100
|`event_types`| Enum[]| Required | Vehicle [event types][vehicle-events] for state change, with allowable values determined by `vehicle_state`|
@@ -117,8 +120,10 @@ A standard point of vehicle telemetry. References to latitude and longitude impl
117
120
118
121
| Field | Type | Required/Optional | Field Description |
|`telemetry_id`| UUID | Required | ID used for uniquely-identifying a Telemetry entry |
121
123
|`device_id`| UUID | Required | ID used in [Register](#vehicle---register)|
124
+
|`provider_id`| UUID | Required | A UUID for the Provider, unique within MDS. See MDS [provider list](/providers.csv). |
125
+
|`data_provider_id`| UUID | Optional | If different than `provider_id`, a UUID for the data solution provider managing the data feed in this endpoint. See MDS [provider list](/providers.csv) which includes both service operators and data solution providers. |
126
+
|`telemetry_id`| UUID | Required | ID used for uniquely-identifying a Telemetry entry |
122
127
|`timestamp`|[Timestamp][ts]| Required | Date/time that event occurred. Based on GPS or GNSS clock |
123
128
| `trip_ids` | UUID[] | Required | If telemetry occurred during a trip, the ID of the trip(s). If not in a trip, `null`.
124
129
| `journey_id` | UUID | Required | If telemetry occurred during a trip, the ID of the journey. If not in a trip, `null`.
@@ -214,8 +219,8 @@ A Trip is defined by the following structure:
214
219
|`fare_attributes`| Map | Optional |**[Mode](/modes#list-of-supported-modes) Specific**. [Fare attributes](/modes#fare-attributes) given as unordered key-value pairs |
215
220
|`start_time`|[Timestamp][ts]| Required | Start of the passenger/driver trip |
216
221
|`end_time`|[Timestamp][ts]| Required | End of the passenger/driver trip |
217
-
|`start_location`|[Point](point)| Required | Location of the start of the trip. See also [Stop-based Geographic Data][stop-based-geo]. |
218
-
|`end_location`|[Point](point)| Required | Location of the end of the trip. See also [Stop-based Geographic Data][stop-based-geo]. |
222
+
|`start_location`|[GPS](gps)| Required | Location of the start of the trip. |
223
+
|`end_location`|[GPS](gps)| Required | Location of the end of the trip. |
219
224
|`publication_time`|[Timestamp][ts]| Optional | Date/time that trip became available through the trips endpoint |
220
225
| `reservation_attributes` | [Reservation](#reservation-data) | Required if available | Reservation details, if a reservation initiated this trip
221
226
|`accessibility_options`| Enum[]| Optional | The **union** of any accessibility options requested, and used. E.g. if the passenger requests a vehicle with `wheelchair_accessible`, but doesn’t utilize the features during the trip, the trip payload will include `accessibility_options: ['wheelchair_accessible']`. See [accessibility-options][accessibility-options]|
0 commit comments