Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pierre-bouffort opened this issue Jun 3, 2024 · 0 comments
Labels
enhancement New feature or request Micromobility Micromobility mode: scooters, docked, bikeshare, dockless Policy Specific to the Policy API Schema Implications for JSON Schema or OpenAPI
Milestone

Comments

@pierre-bouffort
Copy link
Collaborator

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 pierre-bouffort added enhancement New feature or request Schema Implications for JSON Schema or OpenAPI Policy Specific to the Policy API labels Jun 3, 2024
@schnuerle schnuerle added this to the 2.1.0 milestone Jun 3, 2024
@schnuerle schnuerle changed the title Policy API - Mileage thresholds in addition to time thresholds Policy API - Rule unit of distance travelled for maintenance use cases Jul 10, 2024
@schnuerle schnuerle added the Micromobility Micromobility mode: scooters, docked, bikeshare, dockless label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Micromobility Micromobility mode: scooters, docked, bikeshare, dockless Policy Specific to the Policy API Schema Implications for JSON Schema or OpenAPI
Projects
None yet
Development

No branches or pull requests

2 participants