I have a some maps based on OSM data. The cadence with which they are updated varies, but is predictable. One updates every 5 minutes, one every few days, and another weekly. What they each have in common is that they take the raw OSM data and process it with a lua script to combine different OSM objects that should look the same on the map.
It should be possible to extend this to be able to handle OSM conditional opening - for example on objects like this one (see here for the thread where that came from).
What I’d like is:
- The current state of the object (open or closed) for
foot
access *1 - The date/time of the next state change (to closed if currently open, and to closed if currently open).
- The length of the next state. *2
*1 which naturally means on a foot
tag if set, or more general access if not.
*2 the reason for getting the length is so that shops don’t all show up as “closed” overnight and “open” again the next morning - I’m trying to handle “X is closed for weeks or months” here, not “overnight roadworks” etc.
Now obviously I could write something myself, but clearly there’s no point in doing that if something suitable already exists. The wiki does link to software that supports conditional restrictions, but these seem to be mostly answering the “now” part of the question.
Does anyone know of anything (written in or translatable to lua) that covers the three points above?