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 /policiesendpoint that returns only the version, last_updated, end_date fields, like so:
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
No, not breaking
Impacted Spec
policy
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
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 theversion
,last_updated
,end_date
fields, like so: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
policy
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