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

Policy API - Mileage thresholds in addition to time thresholds #908

Open pierre-bouffort opened 4 weeks ago

pierre-bouffort commented 4 weeks ago

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

As we have seen in some cities, policies will require to have the operators perform maintenance on their devices at a given frequency. The first step was to allow for the differentiation of on-street maintenance (quick check-up and a battery swap) from the workshop maintenance (more complete overhaul). This was done by leveraging the maintenance vs. maintenance_pickupevents

Now, we see cities ask for a maintenance frequency either in time (already possible in MDS as-is) but also a frequency in terms of mileage travelled since last maintenance. And we have no way of expressing this in MDS Policy API today.

Describe the solution you'd like

We could add the possibility to express the rules minimum and maximum values in a new unit which could be km and miles.

Is this a breaking change

No, not breaking (to be confirmed...) We could simply add the km and miles in the rule units https://github.com/openmobilityfoundation/mobility-data-specification/tree/main/policy#rule-units

Impacted Spec

For which spec is this feature being requested?

Describe alternatives you've considered

...

Additional context

Add any other context or screenshots about the feature request here.