8000 TariffRestrictions - understanding start\end_date start\end_time and · Issue #499 · ocpi/ocpi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

TariffRestrictions - understanding start\end_date start\end_time and #499

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

Open
LiorBenAri opened this issue Sep 25, 2024 · 3 comments
Open

Comments

@LiorBenAri
Copy link

Hi,

The TariffRestrictions object includes the properties start_time, start_date, end_time, and end_date.
My question is - what is the definition of the start\end_time?
Let's say start_date = 2024-09-25, start_date = 2025-09-25, start_time - 10:00, end_time - 11:00
Then Is it:
a.The Tariff is active on each day (I'm ignoring the days restriction) between 10:00-11:00 on the period between 2024-09-25-2025-09-25.
Or
b. Then the Tariff is active from 2024-09-25, 10:00 till 2025-09-25, 11:00.

Which is the right one?

@LiorBenAri
Copy link
Author

Any thoughts on this? :)

@reinierl
Copy link
Contributor
reinierl commented Oct 1, 2024

I always understood it as A. That is not explicit from the wording though.

In the OCPI 3.0 draft it's interpreted as A and the different fields have actually gone to different objects. The start time and end time (applying on each day anew) are in the Tariff object. The start date and end date (points in linear time where the tariff goes into and out of effect) go to a new Tariff Association object.

@LiorBenAri
Copy link
Author

Thank you @reinierl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0