[Tagging] Opening hours too long for OSM

Tobias Zwick osm at westnordost.de
Thu Oct 11 21:21:42 UTC 2018

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



More information about the Tagging mailing list