opening-hours / opening_hours.js

Library to parse and process the opening_hours tag from OpenStreetMap data
https://openingh.ypid.de/evaluation_tool/
223 stars 118 forks source link

Define a subset of public holidays when shops must be closed #196

Open chiak597 opened 7 years ago

chiak597 commented 7 years ago

In Central Europe (Czech Republic, Poland, Slovakia etc), it is common that all supermarkets are required by law to close on some (but not all) public holidays.

So basically we have two scenarios:

Of course, it is currently possible to list all dates manually (for example current regulations for the Czech Republic: Jan1, easter + 1 day, May 8, Sep 28, Oct 28, Dec 25, Dec 26 off), however this looks pretty chaotic - and a lot of manual work is needed when laws are changed.

So my suggestion is to create a list of days when shops must be closed. What is your opinion about that? Low priority of course :-)

ypid commented 7 years ago

Hey

I agree that maintaining something like Jan1, easter + 1 day, May 8, Sep 28, Oct 28, Dec 25, Dec 26 off for each such oh value is bad. There is a similar thing with bank holidays (written as BH) already. But for something like this to be supported by any of the implementations it would need to be specified and approved in a Proposal. If that is done, then it can be implemented here. If you have the time and will, you are free to go thought the proposal process and bring this feature on its way.

donalhunt commented 7 years ago

This would also be useful for situation where all of a particular type of amenity must be closed by law.

e.g. in Ireland, there are no alcohol sales on Good Friday (2 days before easter) and Christmas Day (with a few limited exceptions). We may just fix the glitch regarding Good Friday by amending legislation. :)