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
@@ -73,14 +74,32 @@ Additionally, `device_id` must remain constant for the device's lifetime of serv
73
74
74
75
References to geographic datatypes (Point, MultiPolygon, etc.) imply coordinates encoded in the [WGS 84 (EPSG:4326)][wgs84] standard GPS or GNSS projection expressed as [Decimal Degrees][decimal-degrees]. When points are used, you may assume a 20 meter buffer around the point when needed.
75
76
76
-
Whenever an individual location coordinate measurement is presented, it must be
77
-
represented as a GeoJSON [`Feature`][geojson-feature] object with a corresponding [`timestamp`][ts] property and [`Point`][geojson-point] geometry:
77
+
### Geographic Telemetry Data
78
+
79
+
Whenever a vehicle location coordinate measurement is presented, it must be
80
+
represented as a GeoJSON [`Feature`][geojson-feature] object with a corresponding
81
+
`properties` object with the following properties:
82
+
83
+
84
+
| Field | Type | Required/Optional | Field Description |
Copy file name to clipboardExpand all lines: provider/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,7 @@ For the near-ish real time use cases, please use the [events][events] endpoint.
218
218
219
219
### Routes
220
220
221
-
To represent a route, MDS `provider` APIs must create a GeoJSON [`FeatureCollection`][geojson-feature-collection], which includes every [observed point][geo] in the route, even those which occur outside the [municipality boundary][muni-boundary].
221
+
To represent a route, MDS `provider` APIs must create a GeoJSON [`FeatureCollection`][geojson-feature-collection], which includes every [observed point][point-geo] in the route, even those which occur outside the [municipality boundary][muni-boundary].
222
222
223
223
Routes must include at least 2 points: the start point and end point. Routes must include all possible GPS or GNSS samples collected by a Provider. Providers may round the latitude and longitude to the level of precision representing the maximum accuracy of the specific measurement. For example, [a-GPS][agps] is accurate to 5 decimal places, [differential GPS][dgps] is generally accurate to 6 decimal places. Providers may round those readings to the appropriate number for their systems.
224
224
@@ -290,7 +290,7 @@ Unless stated otherwise by the municipality, this endpoint must return only thos
290
290
|`event_types`| Enum[]| Required |[Vehicle event(s)][vehicle-events] for state change, allowable values determined by `vehicle_state`|
291
291
|`event_time`|[timestamp][ts]| Required | Date/time that event occurred at. See [Event Times][event-times]|
292
292
|`publication_time`|[timestamp][ts]| Optional | Date/time that event became available through the status changes endpoint |
293
-
|`event_location`| GeoJSON [Point Feature][geo]| Required | See also [Stop-based Geographic Data][stop-based-geo]. |
293
+
|`event_location`| GeoJSON [Point Feature][point-geo]| Required | See also [Stop-based Geographic Data][stop-based-geo]. |
294
294
|`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 status change. See [Geography Driven Events][geography-driven-events]. Required if `event_location` is not present. |
295
295
|`battery_pct`| Float | Required if Applicable | Percent battery charge of device, expressed between 0 and 1 |
296
296
|`trip_id`| UUID | Required if Applicable | Trip UUID (foreign key to Trips API), required if `event_types` contains `trip_start`, `trip_end`, `trip_cancel`, `trip_enter_jurisdiction`, or `trip_leave_jurisdiction`|
@@ -573,8 +573,8 @@ In addition to the standard [Provider payload wrapper](#response-format), respon
573
573
|`last_event_time`|[timestamp][ts]| Required | Date/time when last state change occurred. See [Event Times][event-times]|
574
574
|`last_vehicle_state`| Enum | Required |[Vehicle state][vehicle-states] of most recent state change. |
575
575
|`last_event_types`| Enum[]| Required |[Vehicle event(s)][vehicle-events] of most recent state change, allowable values determined by `last_vehicle_state`. |
576
-
|`last_event_location`| GeoJSON [Point Feature][geo]| Required | Location of vehicle's last event. See also [Stop-based Geographic Data][stop-based-geo]. |
577
-
|`current_location`| GeoJSON [Point Feature][geo]| Required if Applicable | Current location of vehicle if different from last event, and the vehicle is not currently on a trip. See also [Stop-based Geographic Data][stop-based-geo]. |
576
+
|`last_event_location`| GeoJSON [Point Feature][point-geo]| Required | Location of vehicle's last event. See also [Stop-based Geographic Data][stop-based-geo]. |
577
+
|`current_location`| GeoJSON [Point Feature][point-geo]| Required if Applicable | Current location of vehicle if different from last event, and the vehicle is not currently on a trip. See also [Stop-based Geographic Data][stop-based-geo]. |
578
578
|`battery_pct`| Float | Required if Applicable | Percent battery charge of device, expressed between 0 and 1 |
579
579
580
580
[Top][toc]
@@ -590,7 +590,6 @@ In addition to the standard [Provider payload wrapper](#response-format), respon
0 commit comments