mobility-data-specification icon indicating copy to clipboard operation
mobility-data-specification copied to clipboard

Policy API - Rule unit of distance travelled for maintenance use cases

Open pierre-bouffort opened this issue 1 year ago • 1 comments

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_pickup events

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?

  • policy

Describe alternatives you've considered

...

Additional context

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

pierre-bouffort avatar Jun 03 '24 14:06 pierre-bouffort

If we want this to make it to the MDS 2.1 release, we are going to need someone to make a PR in the next month or two so that it can be discussed and reviewed by the steering committee and working group.

schnuerle avatar Apr 16 '25 14:04 schnuerle

Complete with #950

schnuerle avatar Aug 21 '25 16:08 schnuerle