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
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,7 +199,7 @@ For the near-ish real time use cases, please use the [events][events] endpoint.
199
199
200
200
### Routes
201
201
202
-
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].
202
+
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].
203
203
204
204
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.
205
205
@@ -271,7 +271,7 @@ Unless stated otherwise by the municipality, this endpoint must return only thos
271
271
|`event_types`| Enum[]| Required |[Vehicle event(s)][vehicle-events] for state change, allowable values determined by `vehicle_state`|
272
272
|`event_time`|[timestamp][ts]| Required | Date/time that event occurred at. See [Event Times][event-times]|
273
273
|`publication_time`|[timestamp][ts]| Optional | Date/time that event became available through the status changes endpoint |
274
-
|`event_location`| GeoJSON [Point Feature][geo]| Required | See also [Stop-based Geographic Data][stop-based-geo]. |
274
+
|`event_location`| GeoJSON [Point Feature][point-geo]| Required | See also [Stop-based Geographic Data][stop-based-geo]. |
275
275
|`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. |
276
276
|`battery_pct`| Float | Required if Applicable | Percent battery charge of device, expressed between 0 and 1 |
277
277
|`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`|
@@ -535,8 +535,8 @@ In addition to the standard [Provider payload wrapper](#response-format), respon
535
535
|`last_event_time`|[timestamp][ts]| Required | Date/time when last state change occurred. See [Event Times][event-times]|
536
536
|`last_vehicle_state`| Enum | Required |[Vehicle state][vehicle-states] of most recent state change. |
537
537
|`last_event_types`| Enum[]| Required |[Vehicle event(s)][vehicle-events] of most recent state change, allowable values determined by `last_vehicle_state`. |
538
-
|`last_event_location`| GeoJSON [Point Feature][geo]| Required | Location of vehicle's last event. See also [Stop-based Geographic Data][stop-based-geo]. |
539
-
|`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]. |
538
+
|`last_event_location`| GeoJSON [Point Feature][point-geo]| Required | Location of vehicle's last event. See also [Stop-based Geographic Data][stop-based-geo]. |
539
+
|`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]. |
540
540
|`battery_pct`| Float | Required if Applicable | Percent battery charge of device, expressed between 0 and 1 |
541
541
542
542
[Top][toc]
@@ -552,7 +552,6 @@ In addition to the standard [Provider payload wrapper](#response-format), respon
0 commit comments