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

Handle `variable_date`s for things from other calendars: Mid-Autumn Festival, Ramadan, ... #408

Open Artoria2e5 opened 3 years ago

Artoria2e5 commented 3 years ago

Since #406 brings up the issue of mid-autumn festival, I figured that I should open a tracking issue for handling non-trivial variable_dates generally stemming from other calendar systems. A list I can think of are:

Each of these calendar systems will likely require an external dependency with loads of tabulation, so expect discussions about optional dependencies and porting. (Even with a system as "simple and native" as Gregorian, it took some work to figure out how to find Easter!)

Dependency on observation may require updates every couple of years, and also increase the amount of data required to ship. Unless you try to predict the future. (Well, the dependency should handle it...)

ypid commented 3 years ago

I am open to external dependencies to handle that.