openmobilityfoundation / curb-data-specification

A data specification to help cities manage their curb zone programs and surrounding areas, and measure the utilization and impact.
https://www.openmobilityfoundation.org/about-cds/
Other
45 stars 16 forks source link

Representing Exception User Classes #124

Open LaurentG-AMD opened 10 months ago

LaurentG-AMD commented 10 months ago

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

Similar to issue #117, there is currently no way to define and communicate a policy that excludes User Classes rater than include them, based on our reading of the User Classes spec.

For instance, creating a no-stopping zone except for buses would require overlaping both a no-stopping zone for every type of vehicles and superimposing a stopping for User Classes='bus' with a higher priority, which departs from the way the regulations are written in Montreal and both makes it more complicated to maintain and to correctly comprehend for local users.

Describe the solution you'd like

We would like

Example : A no stop zone for a bus stop:

{
    'activity': 'no-stopping',
    'user_classes': ['bus'],
    'user_classes_except': true
}

Is this a breaking change

No, not breaking

Impacted Spec

Curbs

Describe alternatives you've considered

As described above it is possible to circumvent the missing exception clause but it requires multiplying the number of policy objects and may make the model harder to maintain and/or comprehend.

Additional context

None

schnuerle commented 3 months ago

Is this close enough to Issue #117 to put this description as a comment there and close this issue? Or do you think this is a different idea?

LaurentG-AMD commented 3 months ago

It's definetly the same idea applied to another section of the spec. They should be treated at the same time.