|
1 | 1 | # Mobility Data Specification: **Agency**
|
2 | 2 |
|
| 3 | +<a href="/agency/"><img src="https://i.imgur.com/HzMWtaI.png" width="120" align="right" alt="MDS Agency Icon" border="0"></a> |
| 4 | + |
3 | 5 | The Agency API endpoints are intended to be implemented by regulatory agencies and consumed by mobility providers. Providers query the Agency API when events (such as a trip start or vehicle status change) occur in their systems.
|
4 | 6 |
|
5 | 7 | This specification contains a collection of RESTful APIs used to specify the digital relationship between *mobility as a service* providers and the agencies that regulate them.
|
@@ -183,7 +185,8 @@ Body Params:
|
183 | 185 | | `vehicle_state` | Enum | Required | see [Vehicle States][vehicle-states] |
|
184 | 186 | | `event_types` | Enum[] | Required | see [Vehicle Events][vehicle-events] |
|
185 | 187 | | `timestamp` | [timestamp][ts] | Required | Date of last event update |
|
186 |
| -| `telemetry` | [Telemetry](#telemetry-data) | Required | Single point of telemetry | |
| 188 | +| `telemetry` | [Telemetry](#telemetry-data) | Required | Single point of telemetry. | |
| 189 | +| `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. | |
187 | 190 | | `trip_id` | UUID | Optional | UUID provided by Operator to uniquely identify the trip. Required if `event_types` contains `trip_start`, `trip_end`, `trip_cancel`, `trip_enter_jurisdiction`, or `trip_leave_jurisdiction` |
|
188 | 191 |
|
189 | 192 | 201 Success Response:
|
@@ -225,11 +228,12 @@ Body Params:
|
225 | 228 |
|
226 | 229 | 400 Failure Response:
|
227 | 230 |
|
228 |
| -| `error` | `error_description` | `error_details`[] | |
229 |
| -| --------------- | ------------------------------------ | ------------------------------- | |
230 |
| -| `bad_param` | A validation error occurred. | Array of parameters with errors | |
231 |
| -| `invalid_data` | None of the provided data was valid. | | |
232 |
| -| `missing_param` | A required parameter is missing. | Array of missing parameters | |
| 231 | +| `error` | `error_description` | `error_details`[] | |
| 232 | +| --------------- | ------------------------------------ | --------------------------------- | |
| 233 | +| `bad_param` | A validation error occurred. | Array of parameters with errors | |
| 234 | +| `invalid_data` | None of the provided data was valid. | | |
| 235 | +| `missing_param` | A required parameter is missing. | Array of missing parameters | |
| 236 | +| `unregistered` | Some of the devices are unregistered | Array of unregistered `device_id` | |
233 | 237 |
|
234 | 238 | [Top][toc]
|
235 | 239 |
|
@@ -326,8 +330,9 @@ If `stop_id` is specified, `GET` will return an array with a single stop record,
|
326 | 330 |
|
327 | 331 | [beta]: /general-information.md#beta-features
|
328 | 332 | [general]: /general-information.md
|
| 333 | +[geography-driven-events]: /general-information.md#geography-driven-events |
329 | 334 | [error-messages]: /general-information.md#error-messages
|
330 |
| -[hdop]: https://support.esri.com/en/other-resources/gis-dictionary/term/358112bd-b61c-4081-9679-4fca9e3eb926 |
| 335 | +[hdop]: https://en.wikipedia.org/wiki/Dilution_of_precision_(navigation) |
331 | 336 | [propulsion-types]: /general-information.md#propulsion-types
|
332 | 337 | [responses]: /general-information.md#responses
|
333 | 338 | [stops]: /general-information.md#stops
|
|
0 commit comments