Opening Hours processor for lua

Does anyone know of an OSM opening_hours processor written (under a suitable permissive licence) in lua? I’m not looking for anything capable of deciphering the nuances of e.g. “second last Tuesday in April apart from public holidays”, just “is this place open on a Friday after 23:00?”.

The idea is something that can be called directly from here to show a slightly different icon for “late establishments” and also from here to append searchable modifiers to names; something that already happens for various other attributes.

There are quite a few implementations in other languages already (a web search finds a few more beyond those listed on the OSM wiki page). Obviously I could (assuming a suitable licence) translate one of these to lua or just write my own, but clearly there’s no point in doing that if one already exists.

1 post - 1 participant

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/opening-hours-processor-for-lua/109984