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
@@ -42,7 +45,7 @@ Working Groups and their Steering Committees are expected to review beta designa
42
45
43
46
[Top][toc]
44
47
45
-
## Costs and currencies
48
+
## Costs and Currencies
46
49
47
50
Fields specifying a monetary cost use a currency as specified in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes). All costs should be given as integers in the currency's smallest unit. As an example, to represent $1 USD, specify an amount of `100` (100 cents).
48
51
@@ -76,6 +79,12 @@ Additionally, `device_id` must remain constant for the device's lifetime of serv
76
79
77
80
[Top][toc]
78
81
82
+
## GBFS Compatibility
83
+
84
+
Some of the fields in the `Stops` definition are using notions which are currently not in MDS, such as `rental_methods`. These fields are included for compatibility with GBFS.
85
+
86
+
[Top][toc]
87
+
79
88
## Geographic Data
80
89
81
90
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.
@@ -169,7 +178,7 @@ For multi-record POST and PUT calls, e.g. sending Events using the Agency API, t
169
178
|`total`| Integer | Total number of provided points |
170
179
|`failures`|[Trip](#trip-data)[]| Array of failed trip records (empty if all successful) |
171
180
172
-
### Failure Details:
181
+
### Failure Details
173
182
174
183
| Field | Type | Field Description |
175
184
| ----- | ---- | ----------------- |
@@ -186,26 +195,12 @@ All String fields, such as `vehicle_id`, are limited to a maximum of 255 charact
186
195
187
196
[Top][toc]
188
197
189
-
### GBFS Compatibility
190
-
191
-
Some of the fields in the `Stops` definition are using notions which are currently not in MDS, such as `rental_methods`. These fields are included for compatibility with GBFS.
192
-
193
-
[Top][toc]
194
-
195
198
## Timestamps
196
199
197
200
A `timestamp` refers to integer milliseconds since Unix epoch.
198
201
199
202
[Top][toc]
200
203
201
-
## UUIDs
202
-
203
-
Object identifiers are described via Universally Unique Identifiers [(UUIDs)](https://en.wikipedia.org/wiki/Universally_unique_identifier). For example, the `device_id` field used to uniquely identify a vehicle is a UUID.
204
-
205
-
MDS uses Version 1 UUIDs by default. Version 4 UUIDs may be used where noted.
206
-
207
-
[Top][toc]
208
-
209
204
## Trips
210
205
211
206
Counting trips is a common analysis with MDS data, but in some instances when
@@ -223,6 +218,14 @@ at the recommendation of the MDS community when analyzing trips.
223
218
224
219
[Top][toc]
225
220
221
+
## UUIDs
222
+
223
+
Object identifiers are described via Universally Unique Identifiers [(UUIDs)](https://en.wikipedia.org/wiki/Universally_unique_identifier). For example, the `device_id` field used to uniquely identify a vehicle is a UUID.
224
+
225
+
MDS uses Version 1 UUIDs by default. Version 4 UUIDs may be used where noted.
226
+
227
+
[Top][toc]
228
+
226
229
## Vehicle States
227
230
228
231
See new location within [vehicle states](/modes/vehicle_states.md) in [modes](/modes#vehicle-states).
@@ -253,12 +256,12 @@ MDS APIs must handle requests for specific versions of the specification from cl
253
256
254
257
Versioning must be implemented through the use of a custom media-type, `application/vnd.mds+json`, combined with a required `version` parameter. The one exception is the `/reports` endpoint, which returns CSV files instead of JSON, and so uses `text/vnd.mds+csv` as its media-type.
255
258
256
-
The version parameter specifies the dot-separated combination of major and minor versions from a published version of the specification. For example, the media-type for version `1.0.1` would be specified as `application/vnd.mds+json;version=1.0`
259
+
The version parameter specifies the dot-separated combination of major and minor versions from a published version of the specification. For example, the media-type for version `1.0.1` would be specified as `application/vnd.mds+json;version=1.0`. Only major and minor versions are allowed and required in the media-type version string (not [patch](https://github.com/openmobilityfoundation/governance/blob/main/technical/ReleaseGuidelines.md#versioning) releases).
257
260
258
261
Clients must specify the version they are targeting through the `Accept` header. For example:
259
262
260
263
```http
261
-
Accept: application/vnd.mds+json;version=1.2.0
264
+
Accept: application/vnd.mds+json;version=2.0
262
265
```
263
266
264
267
Since versioning was not available from the start, the following APIs provide a fallback version if the `Accept` header is not set as specified above:
0 commit comments