Skip to content

Commit e08ffc0

Browse files
authored
Merge pull request #665 from openmobilityfoundation/ms-vehicles-beta
Move Provider Vehicles Out of Beta
2 parents 0fb8a9e + e53e576 commit e08ffc0

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

general-information.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Defining terminology and abbreviations used throughout MDS.
5858
* **API** - Application Programming Interface - A function or set of functions that allow one software application to access or communicate with features of a different software application or service.
5959
* **API Endpoint** - A point at which an API connects with a software application or service.
6060
* **DOT** - Department of Transportation, usually a city-run agency.
61+
* **Jurisdiction** - An agency’s area of legal authority to manage and regulate a mobility program in the real world. Note there is also an MDS API called [Jurisdiction](/jurisdiction/, which is a way to digitally represent this.
6162
* **PROW** - Public Right of Way - the physical infrastructure reserved for transportation purposes, examples include sidewalks, curbs, bike lanes, transit lanes and stations, traffic lanes and signals, and public parking.
6263

6364
[Top][toc]

provider/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,11 @@ In the case that a `stop_id` query parameter is specified, the `stops` array ret
539539

540540
### Vehicles
541541

542-
The `/vehicles` endpoint returns the current status of vehicles on the [PROW](/general-information.md#definitions). Only vehicles that are currently in available, unavailable, or reserved states should be returned in this payload. Data in this endpoint should reconcile with data from the `/status_changes` enpdoint.
542+
The `/vehicles` endpoint returns the current status of vehicles in an agency's [Jurisdiction](/general-information.md#definitions) and/or area of agency responsibility. All vehicles that are currently in any [`vehicle_state`](/general-information.md#vehicle-states) should be returned in this payload. Since all states are returned, care should be taken to filter out states not in the [PROW](/general-information.md#definitions) if doing vehicle counts. For the states `elsewhere` and `removed` which include vehicles not in the [PROW](/general-information.md#definitions) but provide some operational clarity for agencies, these must only persist in the feed for 90 minutes before being removed.
543543

544-
As with other MDS APIs, `/vehicles` is intended for use by regulators, not by the general public. `/vehicles` can be deployed by providers as a standalone MDS endpoint for agencies without requiring the use of other endpoints, due to the [modularity](/README.md#modularity) of MDS. See our [MDS Vehicles Guide](https://github.com/openmobilityfoundation/mobility-data-specification/wiki/MDS-Vehicles) for how this compares to GBFS `/free_bike_status`. Note that using authenticated `/vehicles` does not replace the role of a public [GBFS][gbfs] feed in enabling consumer-facing applications.
544+
Data in this endpoint should reconcile with data from the historic [`/status_changes`](/provider#status-changes) enpdoint, though `/status_changes` is the source of truth if there are discrepancies.
545+
546+
As with other MDS APIs, `/vehicles` is intended for use by regulators, not by the general public. `/vehicles` can be deployed by providers as a standalone MDS endpoint for agencies without requiring the use of other endpoints, due to the [modularity](/README.md#modularity) of MDS. See our [MDS Vehicles Guide](https://github.com/openmobilityfoundation/mobility-data-specification/wiki/MDS-Vehicles) for how this compares to GBFS `/free_bike_status`. Note that using authenticated `/vehicles` does not replace the role of a public [GBFS][gbfs] feed in enabling consumer-facing applications. If a provider is using both `/vehicles` and GBFS endpoints, the `/vehicles` endpoint should be considered source of truth regarding an agency's compliance checks.
545547

546548
In addition to the standard [Provider payload wrapper](#response-format), responses from this endpoint should contain the last update timestamp and amount of time until the next update in accordance with the [Data Latency Requirements][data-latency]:
547549

@@ -558,7 +560,7 @@ In addition to the standard [Provider payload wrapper](#response-format), respon
558560

559561
**Endpoint:** `/vehicles`
560562
**Method:** `GET`
561-
**[Beta feature][beta]:** Yes (as of 0.4.1)
563+
**[Beta feature][beta]:** No (as of 1.2.0)
562564
**Schema:** [`vehicles` schema][vehicles-schema]
563565
**`data` Payload:** `{ "vehicles": [] }`, an array of objects with the following structure
564566

provider/vehicles.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,12 @@
394394
"last_vehicle_state": {
395395
"enum": [
396396
"available",
397+
"elsewhere",
397398
"non_operational",
398-
"reserved"
399+
"on_trip",
400+
"removed",
401+
"reserved",
402+
"unknown"
399403
]
400404
}
401405
}
@@ -562,4 +566,4 @@
562566
}
563567
},
564568
"additionalProperties": false
565-
}
569+
}

0 commit comments

Comments
 (0)