On 2013-10-19 22:30, André Pirard wrote :
Hi,

I've had multiple difficulties described here coding a simple opening-hours "always except one period".
OpeningHoursEdit bugs and not finding how to represent "always" after reading the whole lot several times.
Normally, always is 24/7 but I suspect protest against 24/7 + "off" time.
So, I bet that nothing preceding "period off" means always.
And, as you probably noticed that I don't take OSM as a betting game, I'm asking confirmation.

As it takes much time "reading the whole lot several times", I added a more conventional syntax diagram as a synoptic.
Please check it and see what must remain of the rest and how.
Feel free to add as many (n) references as needed behind any diagram line to text below it.
But please do not crowd the diagram with the text itself again, thanks.

On 2013-10-20 03:00, André Pirard wrote :
Hi,

Thanks for your replies.

On 2013-10-19 22:54, Janko Mihelić wrote :
I think the best solution for your problem is:

24/7;Fr 00:00-14:00,22:00-24:00

I wouldn't use "off", I'm not sure a lot of data consumers consider it.

OK, I changed the diagram to accept 24/7 that way.
But not using "off" means that the period is open, not closed.

On 2013-10-19 22:54, Charles Basenga Kiyanda wrote :
If I understand the opening_hours wiki page correctly you're missing a semicolon and the correct input should be:

opening_hours=24/7; Fr 14:00-22:00 off

Does that work?
Ouch, the missing semicolon is a typo in my report, it was in the tag.
"working"? That's a convention.
Regarding OpeningHoursEdit, it first complains about "24/7;" and if I remove it,  about the rest. 2 bugs.
Alternatively, omitting the 24/7 part would be correct as it's implied if the off range is not preceded by anything

opening_hours=Fr 14:00-22:00 off
I finally chose to be kind reveal a single bug that way.
I prefer this also because fear the rendered to display a 24/7 icon even if the hours are shortened as above.

On 2013-10-20 16:06, Eckhart Wörner wrote :
Hi Janko, Am Samstag, 19. Oktober 2013, 22:54:04 schrieb Janko Mihelić:
24/7;Fr 00:00-14:00,22:00-24:00
No, that is completely wrong. 24/7 is *not* meant to be used as a building block.
Where is that explained and is it correctly explained if readers understand it "completely wrong"?
I wouldn't use "off", I'm not sure a lot of data consumers consider it.
To my knowledge, all data consumers consider it. (However, "off" is not useful in the discussed case.)
IMHO, "off" must not be used because data consumers consider it but because it means something that has to be said.
IMHO, the first thing in this discussion is to define what "off" means.
Before I added my diagram, the only things one could find is vague things like that a weekday off is wd off.
After adding my diagram, one can at last read a definition of "off" to which everyone agreed:
off: closing time that overrides previous opening time; if the first range is off, an initial 24/7 is assumed
IMVHO, closing time is not the same as opening time, the said period is closing time and then, contrary to what you say, off is not only useful but necessary after "Fr 00:00-14:00,22:00-24:00" because it would mean opening time without it.
And, once again, please realize that, unlike the presence of a tree but much like traffic rules, it's not a question of vague usefulness but of strict necessity so that a POI search program or simply the map do not list as open a facility that's closed.
FYI, I have read that a GPS software or something is using my tags. That's why I'm taking them seriously.

Cheers,

André.


_______________________________________________
Tagging mailing list
Tagging@openstreetmap.org
https://lists.openstreetmap.org/listinfo/tagging

Reply via email to