[Tagging] Opening hours too long for OSM

Tobias Zwick osm at westnordost.de
Fri Oct 12 19:02:29 UTC 2018


Regarding the general workaround of defining some common tag extension
scheme, the idea sounds good at first, but I think this cannot be the
solution after all.
Because, let's not fool ourselves, the application support for an
extension syntax will be almost non-existent. Just look at the support
for things like shop=books;stationery. Also, all QA-Tools will complain
about opening_hours or any other tag normally containing structured data
that is split along several keys to be wrong.

I think this can only be solved effectively centrally, and since Simon
mentioned an earlier ticket in openstreetmap-website, I opened a ticket
to request this:

https://github.com/openstreetmap/openstreetmap-website/issues/2025

On 11/10/2018 23:21, Tobias Zwick wrote:
> Hey there!
> 
> So, a user of StreetComplete came across the following complicated
> opening hours for a shop (prettified):
> 
> Jun-Sep: Mo-Sa 10:00-18:00;
> Jun-Sep: Su 10:00-12:00;
> Nov-Mar: Mo,Tu,Th,Fr 10:00-12:00, 15:00-17:00;
> Nov-Mar: Sa 10:00-12:00;
> Apr-May: Mo-Fr 10:00-12:30,15:00-18:00;
> Apr-May: Sa 10:00-12:30;
> Apr-May: Su 10:00-12:00;
> Oct: Mo-Fr 10:00-12:30,15:00-18:00;
> Oct: Sa 10:00-12:30;
> Oct: Su 10:00-12:00
> 
> Unfortunately, this does not fit into the opening_hours value, as this
> is limited to 255 characters. What can we do?
> 
> Is there any generic way to treat an overflowing tag? Perhaps use a
> second key to store the rest, something like (in this case)
> 
> opening_hours=Jun-Sep: Mo-Sa 10:00-18:00;Jun-Sep: Su
> 10:00-12:00;Nov-Mar: Mo,Tu,Th,Fr 10:00-12:00, 15:00-17:00;
> Nov-Mar: Sa 10:00-12:00;Apr-May: Mo-Fr 10:00-12:30,15:00-18:00;Apr-May:
> Sa 10:00-12:30;Apr-May: Su 10:00-12:00;Oct: Mo-Fr
> 10:00-12:30,15:00-18:00;Oct: Sa 10
> opening_hours_1=:00-12:30;Oct: Su 10:00-12:00
> 
> ?
> 
> Greetings
> Tobias
> 
> _______________________________________________
> Tagging mailing list
> Tagging at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/tagging
> 




More information about the Tagging mailing list