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

Relational Curb Object, Curb Zone, and Curb Policy (1-to-1 or 1-to-many) #152

Open
Mu-yi-Zhou opened this issue Sep 24, 2024 · 2 comments
Open
Labels
Curbs API SMART Collaborative Idea coming from the OMF USDOT SMART grant collaborative.

Comments

@Mu-yi-Zhou
Copy link

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

Sharing a few thoughts on relating Curb Object, Curb Zone, and Curb Policy:

  • 1 curb object relates to 1 or many policies (SF has dual use zone with different policies by time of day indicated by sign)
  • 1 curb object relates to 1 or more curb zones (e.g. street cleanning signs applies to all curb zones of a street block)
  • 1 curb zone relates to 1 or more policies (meter policy and street cleanning apply to a curb zone)
  • 1 curb zone realtes to 1 or more curb objects (a disabled parking sign and a strecth of blue curb paint at a curb zone)
  • 1 policy relates to 1 or more curb objects (a disabled parking sign and a strecth of blue curb paint at a curb zone imply same policy)

Describe the solution you'd like

when 1-to-many relationship is allowed, will we have records of 1-to-1 relations (e.g. curb_object_id and curb_zone_id), or will we have one record of 1-to-many relationship with an array field to store a series of ids (e.g. curb_object_id and curb_zone_ids)?

Is this a breaking change

A breaking change would require consumers or implementors of an API to modify their code for it to continue to function (ex: renaming of a required field or the change in data type of an existing field). A non-breaking change would allow existing code to continue to function (ex: addition of an optional field or the creation of a new optional endpoint).

  • I'm not sure

Impacted Spec

For which spec is this feature being requested?

  • Curbs
@mplsmitch mplsmitch added Curbs API SMART Collaborative Idea coming from the OMF USDOT SMART grant collaborative. labels Sep 26, 2024
@schnuerle
Copy link
Member

This might be connected to what @rneubauerb is thinking about Curb Objects #123 too.

@schnuerle
Copy link
Member

Hi @Mu-yi-Zhou, does the outcome of the discussion at the working group resolve all of this for you all? Please review the comment and new PR details here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Curbs API SMART Collaborative Idea coming from the OMF USDOT SMART grant collaborative.
Projects
None yet
Development

No branches or pull requests

3 participants