Activity positive / negative values #66
Replies: 2 comments 3 replies
-
|
So So to say yes to parking but no loading, you would make one rule be Does this account for this line in the spec: 'The reason we have "positive" and "negative" versions of the same activities (like loading and no parking) is due to priorities: a loading rule that is higher priority than a no loading rule, for instance, implies that the Curb Zone does allow loading at the time in question, while a no parking rule would not. If "negative", rate array should be empty.' ? |
Beta Was this translation helpful? Give feedback.
-
|
Good call out about potentially having to do string parsing to figure out the direction of a policy, that's definitely quirky (but doable). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In our internal implementation of CDS, we're implementing an additional Rule field:
activity_allowedand pruning the negative activities (no parking,no loading, andno stopping) from our Activity enumeration. We will still be CDS compliant, appendingnoto the publishedactivitywhenactivity_allowedisFalse. This allows us to understand when an activity is negative without parsing a string (e.g. does the activity start w/no). It also assumes that every activity can have a negative value. I think that's a valid assumption, but I'm open to being wrong.Beta Was this translation helpful? Give feedback.
All reactions