Proposal talk:Opening hours open until

From OpenStreetMap Wiki
Jump to navigation Jump to search

Is this worth it?

I wonder whether this is common and useful enough to be worth it. After all, every addition to the opening_hours syntax makes it harder for applications to fully implement the standard. There are also associated downsides such as making it harder to point out errors in validators because all sorts of odd syntax could now be intentional. Do we really have to give a machine-readable string for every curiosity that exists, even when it is inherently useless e.g. for showing whether a facility is currently open (the most common use case afaik)? --Tordanik 00:48, 25 February 2014 (UTC)

I am of the opinion that everything which can be expressed with the current syntax (which is a lot …) should be written that way without inventing new syntax elements if the original meaning is still expressed or can be expressed with comments. I also tend to just use fixed starting times and a comment in this rare case. On the other hand, if something can not be expressed and does occur (but more than a couple of times of course) and can be evaluated without additional information such as weather (thus is not subjective) then it should at least be possible to write it in a consistent form. If it then occurs often enough in the database someone can implement it in software. See also [1] but do not take it too seriously, some of those examples are even rare (and complexer) as this one. I just documented them there :) The reason behind all of this is that I would like opening_hours (and OSM in general) to be as close to reality as possible and to be reliable. --Ypid 14:28, 25 February 2014 (UTC)
The aspect of making it harder to reimplement the standard does not really count in my opinion. I hope that the need for this is not there anymore. One would be crazy if trying it anyway ;) I would suggest to simple create wrapper modules and classes around opening_hours.js. I maintain one of them myself for Python. See opening_hours.js: used by other projects for more.--Ypid (talk) 23:15, 20 August 2014 (UTC)