-
Notifications
You must be signed in to change notification settings - Fork 243
Understanding MDS APIs
The Mobility Data Specification offers three primary Application Programming Interfaces (APIs): agency, provider, and policy.
Both the agency and provider APIs allow agencies to gather data about vehicles and trips from a Mobility Service Provider (MSP). Although the design of the APIs differ, they allow for similar types of data gathering. A city can adopt one or both of these APIs depending on their goals, tools, and resources.
| Agency API | Provider API | |
|---|---|---|
| Data flow | MSP pushes data to Agency | Agency pulls data from MSP |
| Key benefits/features | - Designed for real-time data collection - Agency maintains an authoritative database of information reported by all MSPs - Designed to support real-time analysis and adaptive regulation - Available reference implementation and data auditing / verification tools |
- Designed to provide recent historical data and a snapshot of vehicle status (coming in 0.4.1) - Easier to use - Lower IT complexity - Some historical data is available on request, which may reduce need for agencies to store data - Many available commercial and open source analysis tools |
| Drawbacks | - More complex to implement - Agency must operate or procure IT systems capable of handling real-time API calls - Data only published once, not available for re-ingestion - Agencies must store any data needed for future analysis or reporting - Fewer software vendors currently providing processing solutions |
- Harder to scale as datasets get larger - Agency needs to query each MSP individually - Availability of all necessary historical data from MSPs is not guaranteed - Not intended to provide real-time data about events in the right-of-way |
| Who is it for | - Agencies focused on dynamic or real-time management of right-of-way - Agencies with technical capacity to run a more complex system and store sensitive data |
- Agencies focused on using historical data for planning or compliance - Agencies with more limited technical capacity or a desire to minimize technical complexity |
The agency and provider APIs were developed in alignment with each other, with shared terminology and a similar data model. While they will likely stay aligned at a high-level, they are part of an open source development process and it is possible that their features and functionality may diverge further in the future.
Public agencies should consider their goals and use cases when selecting software to ingest and analyze MDS data. Some software packages and vendors may only support agency or provider. Data sharing requirements in permits and regulations should specify which MDS API(s) the public agency intends to use.
The policy API allows agencies to express various types of regulation through an API and can be used in tandem with agency or provider.
| Policy API | |
|---|---|
| Data flow | MSP pulls policy information from Agency |
| Key benefits/features | - Allows agency to publish geography-based regulations (ex: restricted riding/parking areas, vehicle caps, etc.) - MSPs can automatically adjust their services/apps as policies change - Removes need to manually communicate policy changes to MSPs - Works via a static webpage or as a dynamic API |
| Drawbacks | - Some complex policies / rules may not be supported by API - Newest MDS API with limited software tools available to implement - Need to set MSP expectations for how/when policies will change |
| Who is it for | - Agencies focused on dynamic or real-time management of right-of-way - Agencies with technical capacity to run a more complex system and store sensitive data |
MDS Links
Working Groups
2.1.0 Release
0.4.1 Release Planning Meetings
