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] better support for fee 'schedules' #621

Closed
jean-populus opened this issue Jan 30, 2021 · 6 comments
Closed

[Policy API] better support for fee 'schedules' #621

jean-populus opened this issue Jan 30, 2021 · 6 comments
Labels
Policy Specific to the Policy API
Milestone

Comments

@jean-populus
Copy link
Collaborator

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

A lot of cities are moving towards more sophisticated fee structures where the price can vary by state duration or time or day. Currently it seems like a separate rule needs to be created every time the price changes. But it seems there might be a more elegant way to convey this information given that all the other variables are the same and only the price is changing. I've seen other schemas around parking pricing that use 'tables' that seem like they could work here too.

Describe the solution you'd like

Is this a breaking change

  • I'm not sure

Impacted Spec

  • policy

Describe alternatives you've considered

Additional context

@marie-x
Copy link
Collaborator

marie-x commented Jan 30, 2021

Yes, if you want a series of price changes during the day on a fixed schedule, each time-period needs its own rule.

I like fee tables in addition to flat fees. Can be done non-breaking. But tables would be an optimization.

Is dwell time an example of "state duration", or the same thing as "state duration"? Can you provide a couple of concrete examples?

@schnuerle schnuerle added the Policy Specific to the Policy API label Feb 2, 2021
@jean-populus
Copy link
Collaborator Author

One of our customers has parking fees based on a duration table:

  • 0-30min, free
  • 31-90min, $0.02/hour
  • 91-150min, $0.04/hour

Then for their no parking zones they assess a fee/fine as a table as well:

  • 0-30min, free
  • 31-90min, $0.04/hour
  • 91-120min, $0.08/hour
  • 120+, $25/hour

@schnuerle
Copy link
Member

Notes from the working group meeting discussions.

  • GBFS has support for more complex for pricing. However, the design is intentionally more human-friendly than machine-readable.
  • Car share and e-moped programs are used to parking fee structures - does it make sense to create a parallel structure?
  • Populus works with car share and others, and they use fee tables.
  • It can be expressed with spec, but lots of new rules
  • Policy not designed for human readability but 30 rules in Policy vs a table is more complex
  • Looks messy if you put it in Policy now

Even if it is messy, is this possible for you to show these examples here using Policy as it currently is? Then we can discuss how complex it is and how another solution might work.

@schnuerle schnuerle added this to the 1.2.0 milestone Feb 12, 2021
@jean-populus
Copy link
Collaborator Author

jean-populus commented Feb 12, 2021 via email

@jean-populus
Copy link
Collaborator Author

Posting an update from presentation MDS Policy Extensions 15 July 2021

  • Might be premature optimization
  • Proposal: defer any decisions for now

FYI I support deferring this issue. We can close it for now and see if it comes up again.

@schnuerle schnuerle modified the milestones: 1.2.0, 2.0.0 Jul 28, 2021
@jean-populus
Copy link
Collaborator Author

This could be resolved by implementing #785

@schnuerle schnuerle modified the milestones: 2.0.0, Future Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Policy Specific to the Policy API
Projects
None yet
Development

No branches or pull requests

3 participants