-
Notifications
You must be signed in to change notification settings - Fork 121
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
Public holidays Belgium #115
Comments
They seem to be defined as PH according to https://de.wikipedia.org/wiki/Feiertage_in_Belgien so they should be added here.
I think excluding them for now when they are not "official" PHs is the best option. There is an proposal to be written to handle that kind of stuff. There are other countries which have BH (also discussed on the mailing list). I live in Germany and there is no such thing so someone else is encouraged to get that specified.
All right. I use the different states of countries to differentiate this. I hope this works here as well. Can you maybe write this definition using the following query which can give you the state for each region (you will need to set lat and lon respectively)? See also https://github.com/ypid/opening_hours.js#holidays-1 |
The German page is the only one to list Easter and Pentecost as PH, while the German language only represents 1% of the population, so I'm more eager to follow the French and Dutch pages. Banking holidays would be ideal for those extra days. So it shouldn't be included in the PH section indeed. For the linguistic communities, you can find those boundaries here: http://wiki.openstreetmap.org/wiki/WikiProject_Belgium/Boundaries#Linguistic_Communities_.28Gemeenschappen_.2F_Communaut.C3.A9s_.2F_Gemeinschaften.29 However, the tagging mentioned on the wiki isn't right. It's not an administrative border, but a political one on OSM. This is because the linguistic communities don't blend in well with our other administrative boundaries (like provinces and arrondissements). So nominatim doesn't include the communities is their reverse lookup. On top of that, Brussels is a bilingual city, and falls under the Flemish and French community. So perhaps Brussels could be a 4th, hard-coded bilingual list. If you must rely on results from nominatim, the monolingual Dutch speaking area matches perfectly with the Flemish region (state Vlaanderen on nominatim), and the bilingual French-Dutch area matches perfectly with the Brussels Capital region (also listed as a state on nominatim). The German community on the other hand, can only be defined as a list of 9 municipalities. And the French community is the Walloon region (again a state on nominatim), but with the exclusion of those 9 German municipalities. I hope this brought some clarity, but quite likely it didn't. |
You did 👍 Thanks very much for the details.
That is a problem as I am currently only relaying on reverse geocoding from nominatim for the PH/SH decision.
Copy, paste with a hint/comment that the definitions are the same is the best option for now. If there is to much redundancy in the data I will need to clean that up afterwards.
I don’t know the local details so my opinion was only a suggestion and you can decide the details. @sanderd17 Would you like/be able to implement this JS object which can be included in the library? Extra points for writing tests for the definitions 😉 |
I would like to do it, but I still wonder what to do with the monolingual French area. How can 9 municipalities be excluded from the Walloon Region? If no municipalities can be excluded, then the remaining list would look quite big and consist of:
Repeating the same list 27 times, that really looks too much for me, and a nicer solution should be found. Perhaps, instead of nominatim, you could consider using Overpass. A query like this returns all areas the coordinate is in: http://overpass-turbo.eu/s/c5j If that all looks too hard. Maybe one single list in English is the better option. |
I see. Running an overpass query each time oh values are evaluated is not an option right now (like it is done with nominatim) but including the overpass response to a query statically in to the lib would be an option if you really want to do it, I will not stand in the way. About the redundancy. You are total right. You can do this like I demonstrated in this POC: ypid@947dab1
That would also be an option 😉. If you want to go the difficult/better or the easier/sufficient path is up to you. |
@marcgemis also implemented PH for Belgium: marcgemis#1 (I was just made aware of it). @sanderd17 What do you think, which path should we go? |
Oh, totally forgot about this pending job. The patch from Marc is fine. The dates are the same, and he uses bilingual labels, which is fine for me too (if you don't consider the strings to be too long). But most importantly, he has a patch, I don't ;) |
@sanderd17 Thanks very much for your thoughtful comments. I will merge @marcgemis version then and give you both credits. |
In Belgium there are 10 public holidays. They are the same for all regions. However, as the regions use different languages, they are named differently.
See https://nl.wikipedia.org/wiki/Feestdagen_in_Belgi%C3%AB , https://fr.wikipedia.org/wiki/F%C3%AAtes_et_jours_f%C3%A9ri%C3%A9s_en_Belgique and https://de.wikipedia.org/wiki/Feiertage_in_Belgien
I'm not sure how to put these different languages in JS data., so I'll just give a French, Dutch and German example
I don't know exactly what to do with Easter and Pentecost. As they always fall on a sunday, the monday after it is considered the PH. Our legislation doesn't differentiate between PHs and sundays AFAIK. so I guess it's fine to exclude these two days.
Then we also have extra holidays for public servants, and oddly enough, that also counts for banks. These do differ between different regions, as the regional holiday is normally included in it.
The text was updated successfully, but these errors were encountered: