vocol / mobivoc

A vocabulary for future-oriented mobility solutions and value-added services supporting them.
http://mobivoc.org
Creative Commons Attribution 4.0 International
27 stars 11 forks source link

Add offers to civic structures #53

Open Jeremy-Gaillard opened 5 years ago

Jeremy-Gaillard commented 5 years ago

The goodrelations cookbook has examples of complex pricings that require both Offers and PriceSpecifications to be modelled (quantity discounts most notably). These are the kind of pricing that I am currently trying to model for a parking facility.

In mobivoc, the Civic structure class only has Price specification in its range, which prevents the implementation of these complex pricings. Therefore, I suggest adding offers to the Civic structure class to fix this issue.

pomgod commented 5 years ago

Gone through it but does it also include a pricing model like for shared mobility where you pay a certain starting fee depending on certain conditions (day/night) and then an additional cost per time/distance or a combination of it with a possible cap above a certain amount?

Jeremy-Gaillard commented 5 years ago

Some of the pricings I had to model are pretty close to what you are describing.

Here are a few examples of different offers described in JSON to express pricings of different parking facilities.

I think your example could be expressed using only PriceSpecifications. It seems to me the advantage of using Offers is mainly to be able to seperate different pricings that should not interact with one another (like in my third example).

np00 commented 5 years ago

Thanks a lot for the idea & examples!

This project lives mostly from contributions based on research project requirements. Sometimes, contributions are also coming via students who focus on a certain topic.

if the need arises, I will have a look at this and see if I can include. But for now, the issue will stay open as an idea to be implemented in the future.