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
Copy file name to clipboardExpand all lines: agency/README.md
+38-2Lines changed: 38 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ This specification contains a collection of RESTful APIs used to specify the dig
15
15
*[Authorization](#authorization)
16
16
*[GBFS](#gbfs)
17
17
*[Vehicles](#vehicles)
18
+
*[Vehicle - Status](#vehicle---status)
18
19
*[Vehicle - Register](#vehicle---register)
19
20
*[Vehicle - Update](#vehicle---update)
20
21
*[Trips](#trips)
@@ -67,7 +68,7 @@ See the [GBFS Requirement](/README.md#gbfs-requirement) language for more detail
67
68
68
69
## Vehicles
69
70
70
-
The `/vehicles` endpoint returns the specified vehicle (if a device_id is provided) or a list of known vehicles. Providers can only retrieve data for vehicles in their registered fleet.
71
+
The `/vehicles` endpoint returns the specified vehicle (if a device_id is provided) or a list of known vehicles. Providers can only retrieve data for vehicles in their registered fleet. Contains vehicle properties that do not change often.
71
72
72
73
Endpoint: `/vehicles/{device_id}`
73
74
Method: `GET`
@@ -100,6 +101,41 @@ _No content returned on vehicle not found._
100
101
101
102
[Top][toc]
102
103
104
+
### Vehicle - Status
105
+
106
+
The `/vehicles/status` endpoint returns information about the specified vehicle (if a device_id is provided) or a list of known vehicles current state. Providers can only retrieve data for vehicles in their registered fleet. Contains specific vehicle properties that are updated frequently.
107
+
108
+
Endpoint: `/vehicles/status/{device_id}`
109
+
Method: `GET`
110
+
111
+
Path Params:
112
+
113
+
| Param | Type | Required/Optional | Description |
|`device_id`| UUID | Optional | If provided, retrieve the specified vehicle |
116
+
117
+
200 Success Response:
118
+
119
+
If `device_id` is specified, `GET` will return an array with a single vehicle record, otherwise it will be a list of vehicle records with pagination details per the [JSON API](https://jsonapi.org/format/#fetching-pagination) spec:
120
+
121
+
```json
122
+
{
123
+
"vehicles": [ ... ]
124
+
"links": {
125
+
"first": "https://...",
126
+
"last": "https://...",
127
+
"prev": "https://...",
128
+
"next": "https://..."
129
+
}
130
+
}
131
+
```
132
+
133
+
404 Failure Response:
134
+
135
+
_No content returned on vehicle not found._
136
+
137
+
[Top][toc]
138
+
103
139
### Vehicle - Register
104
140
105
141
The `/vehicles` registration endpoint is used to register vehicles for use in the Agency's jurisdiction.
@@ -296,7 +332,7 @@ The authenticated reports are monthly, historic flat files that may be pre-gener
296
332
297
333
[Top][toc]
298
334
299
-
## Reports - register
335
+
## Reports - Register
300
336
301
337
The `/reports` endpoint allows an agency to register aggregated report counts in CSV structure.
Copy file name to clipboardExpand all lines: data-types.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ A standard point of vehicle telemetry. References to latitude and longitude impl
142
142
143
143
## Stops
144
144
145
-
Stops describe vehicle trip start and end locations in a pre-designated physical place. They can vary from docking stations with or without charging, corrals with lock-to railings, or suggested parking areas marked with spray paint. Stops are used in both [Provider](/provider#stops)(including routes and event locations) and [Agency](/agency#stops)(including telemetry data).
145
+
Stops describe vehicle trip start and end locations in a pre-designated physical place. They can vary from docking stations with or without charging, corrals with lock-to railings, or suggested parking areas marked with spray paint. Stops are used in both [Provider](/provider#stops) and [Agency](/agency#stops) telemetry data.
146
146
147
147
| Field | Type | Required/Optional | Description |
@@ -178,7 +178,7 @@ In addition to the standard [Provider payload wrapper](#response-format), respon
178
178
}
179
179
```
180
180
181
-
The `/vehicles` endpoint returns the specified vehicle (if a device_id is provided) or a list of known vehicles.
181
+
The `/vehicles` endpoint returns the specified vehicle (if a device_id is provided) or a list of known vehicles. Contains vehicle properties that do not change often.
182
182
183
183
**Endpoint:**`/vehicles/{device_id}`
184
184
**Method:**`GET`
@@ -214,10 +214,47 @@ _No content returned on vehicle not found._
214
214
215
215
[Top][toc]
216
216
217
+
### Vehicle Status
218
+
219
+
The `/vehicles/status` endpoint returns the specified vehicle (if a device_id is provided) or a list of known vehicles. Contains specific vehicle properties that are updated frequently.
|`device_id`| UUID | Optional | If provided, retrieve the specified vehicle |
232
+
233
+
200 Success Response:
234
+
235
+
If `device_id` is specified, `GET` will return an array with a single vehicle record, otherwise it will be a list of vehicle records with pagination details per the [JSON API](https://jsonapi.org/format/#fetching-pagination) spec:
236
+
237
+
```json
238
+
{
239
+
"vehicles": [ ... ]
240
+
"links": {
241
+
"first": "https://...",
242
+
"last": "https://...",
243
+
"prev": "https://...",
244
+
"next": "https://..."
245
+
}
246
+
}
247
+
```
248
+
249
+
404 Failure Response:
250
+
251
+
_No content returned on vehicle not found._
252
+
253
+
[Top][toc]
254
+
217
255
## Trips
218
256
219
-
A [trip][trips-general-info] represents a journey taken by a *mobility as a service* customer with
220
-
a geo-tagged start and stop point.
257
+
A [trip][trips-general-info] represents a journey taken by a *mobility as a service* customer with a geo-tagged start and stop point.
221
258
222
259
The trips endpoint allows a user to query historical trip data.
223
260
@@ -271,55 +308,15 @@ For the near-ish real time use cases, please use the [events][events] endpoint.
271
308
272
309
[Top][toc]
273
310
274
-
### Routes
275
-
276
-
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].
277
-
278
-
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.
279
-
280
-
Trips that start or end at a [Stop][stops] must include a `stop_id` property in the first (when starting) and last (when ending) Feature of the `route`. See [Stop-based Geographic Data][stop-based-geo] for more information.
The `/telemetry` endpoint is a feed of vehicle telemetry data for publishing all available location data. For privacy reasons, in-trip telemetry may be delayed at the discretion of the regulating body.
317
314
318
-
[Top][toc]
315
+
To represent trip telemetry, the data should includes every [observed point][point-geo] in the trip, even those which occur outside the [municipality boundary][muni-boundary].
319
316
320
-
## Telemetry
317
+
Trip telemetry must include at least 2 points: the start point and end point. Trips 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.
321
318
322
-
The `/telemetry` endpoint is a feed of vehicle telemetry data for publishing all available location data. For privacy reasons, in-trip telemetry may be delayed at the discretion of the regulating body.
319
+
Trips that start or end at a [Stop][stops] must include a `stop_id` property in the first (when starting) and last (when ending) Feature of the `route`. See [Stop-based Geographic Data][stop-based-geo] for more information.
323
320
324
321
Unless stated otherwise by the municipality, this endpoint must return only those telemetry that [intersects][intersection] with the [municipality boundary][muni-boundary].
325
322
@@ -481,7 +478,7 @@ See [Provider examples](examples.md#reports).
0 commit comments