openmobilityfoundation / mobility-data-specification

A data standard to enable right-of-way regulation and two-way communication between mobility companies and local governments.
https://www.openmobilityfoundation.org/about-mds/
Other
676 stars 232 forks source link

Real-time support for MDS Policy #906

Open schnuerle opened 1 month ago

schnuerle commented 1 month ago

Is your feature request related to a problem? Please describe.

While MDS Policy can be real-time if required by the city 1) the spec doesn't explicitly say this and 2) there is not a good way to get the latest policy because the entire policy has to be downloaded to be checked for an update.

Describe the solution you'd like

Update the frequency language to state that real-time is possible, and set a recommended minimum threshold (eg, every 1 minute at most).

Add a new last_updated boolean parameter to the /policies endpoint that returns only the version, last_updated, end_date fields, like so:

{
  "version": "2.0.0",
  "last_updated": 1570035222868,
  "end_date": 1570035222868
}

This creates a quick check option and small file size to allow an operator to check for any update in the file easily and regularly.

Is this a breaking change

Impacted Spec

Describe alternatives you've considered

There has also been talk of making this endpoint a push endpoint option, in addition to the existing pull option, like with do with Agency and Provider for operator data. But this complexity may not be needed if the recommended solution above is adequate.

Additional context

This was discussed a few times at OMF member steering committee meetings, and at public working groups, in the context of supporting real-time emergency response using Policy for AV robotaxis to support #905