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
684 stars 231 forks source link

[Policy API] support utilization policies #620

Closed jean-populus closed 4 months ago

jean-populus commented 3 years ago

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

A few cities have policies around minimum utilization (# rides / # vehicles) but this isn't currently possible to convey using the rule_types which are: count, time, speed, rate, user. In this case we need two different counts - one for trips and one for total vehicles - and the policy is a ratio of the two counts. Cities also would like to specify a time period over which to measure - for example, is it a daily min or a 7 day average min?

Describe the solution you'd like

Is this a breaking change

Impacted Spec

Describe alternatives you've considered

Additional context

jean-populus commented 3 years ago

here are some examples we found in our initial survey, some may no longer be current:

marie-x commented 3 years ago
schnuerle commented 3 years ago

Notes from the working group meeting discussions.

@jean-populus if you can answer the questions above, maybe @karcass can see if these scenarios are possible now in Policy with some examples?

jean-populus commented 3 years ago

The examples were pulled from publicly available policies in 2019 so I'm not sure how accurate they still are and I don't have any further details other than what's been described.

It feels to me like we could have advanced rules where we could define a relationship between two sub-rules. For example, "set the ratio of rule1: rule2 to minimum X". This could then also work for distribution by %.

On Fri, Feb 12, 2021 at 7:25 AM Michael Schnuerle notifications@github.com wrote:

Notes from the working group meeting https://github.com/openmobilityfoundation/mobility-data-specification/wiki/Web-conference-notes,-2021.02.04-(Joint-Working-Group) discussions.

  • Even trickier since this involves two counts: trips and devices
  • Using a Metrics API could make this easier. However, some metrics may be difficult to support. What are the simplest things to be measured vs complex
  • Should we restrict Policy to rules that can be calculated via Metrics? But don’t want to replicate Metrics in policy.
  • In order of complexity: Could 1) add things into policy 2) add well established metrics 3) dynamic metrics calculations
  • Jean offered to share what Populus has been tracking policy-wise pulled from all cities

@jean-populus https://github.com/jean-populus if you can answer the questions above, maybe @karcass https://github.com/karcass can see if these scenarios are possible now in Policy with some examples?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openmobilityfoundation/mobility-data-specification/issues/620#issuecomment-778260316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN6R4GADMGXN5J3MMG4KFUDS6VB6NANCNFSM4WZZDNZA .

schnuerle commented 3 years ago

@avatarneil and @karcass Could you take a look at this, like you mentioned on the WG call last week? Thank you.

jean-populus commented 3 years ago

Posting an update from presentation MDS Policy Extensions 15 July 2021

FYI I'd be in favor of deferring this for now as Utilization is not currently a part of metrics and seems like we should have a larger convo about metrics & policy.