Key:opening hours/Tutorial

From OpenStreetMap Wiki
Jump to: navigation, search

This is a quick tutorial to get you started with the opening hours syntax.


Image demonstrating to use a hyphen to separate the first and last weekday in the range, a space between the day range and the time interval, and noting that a leading zero is mandatory.

  • You should use the common English day abbreviations as in this table:
Abbreviation Day of week
Mo Monday
Tu Tuesday
We Wednesday
Th Thursday
Fr Friday
Sa Saturday
Su Sunday

Multiple opening intervals

opening_hours=Mo-Fr 08:00-12:00,13:00-17:30
same as above, but closed from 12:00 to 13:00 (noon to 1 PM)
  • Add the two time intervals in which they are open, separated by a comma (,).

Multiple days

opening_hours=Mo-Fr 08:00-12:00,13:00-17:30; Sa 08:00-12:00
same as above, also open on Saturday mornings
  • Add the opening hours for each day range, separated by a semicolon and space (; ).

Closed on holidays

opening_hours=Mo-Fr 08:00-12:00,13:00-17:30; Sa 08:00-12:00; PH off
same as above, but closed on public holidays
  • Use PH as if it were a weekday. Instead of hours, use off to say they're closed all day.
  • Use SH for school holidays. Although this is rare, you can also use both PH and SH on the same object, e.g. opening_hours=Mo-Fr 08:00-12:00,13:00-17:30; Sa 08:00-12:00; PH off; SH off

(optional reading) Different hours on holidays

opening_hours=Mo-Fr 08:00-12:00,13:00-17:30; Sa 08:00-12:00; PH 09:00-12:00
on holidays, they are open from 09:00 to 12:00
  • As said before, PH is just like a weekday. Because it is to the right of the rest of the rules, it overwrites them. For more information on which rules take precedence, see this more elaborate guide.

Further reading

Read the time domains specification if you want to learn how to tag more difficult cases, and also other time-related properties such as the collection times of a post box.

You can also read Key:opening_hours on the usage of opening_hours specifically.