Skip to content

Opening Hours Sweep

You'll walk a shopping street, photograph every door sign, and type twenty shops' hours in the exact syntax every map app can read.

About

Every 'open now' in every map app comes from the opening_hours tag, which makes it the most-used and most-wrong data on the map. The tag has a strict grammar, like 'Mo-Fr 09:00-17:30; Sa 10:00-14:00; Su off', and an app can do nothing with '9 to 5 weekdays'. You'll learn the grammar on twenty real shops, photographing the door signs on one pass and typing them at home. Hours copied from a search engine listing don't count, because they're unreliable and the licence forbids it. The lunch break and the public holiday are where most strings break, which is why the evaluator tool exists.

At a glance

Per requirement
15 XP
Completion bonus
75 XP
Requirements
5
Takes
Two evenings
Skill level
Beginner (done it a few times)
Cost
Free
Supplies
Nothing special
Where
Around town
Other people
On your own

Requirements

  1. 1
    Photograph the door sign of twenty shops on one street in a single pass. Pick a street where the map shows shops with no hours, which is most streets. Keep the shop name in each frame so you can match them later. A door sign is public information, but don't photograph staff or customers through the glass. Take a photo of your photo roll, or a contact sheet of the twenty signs. Photo
  2. 2
    Type each set of hours into the opening_hours evaluator until it parses clean. The wiki page for opening_hours links to the evaluation tool. Paste your string in and it tells you whether the grammar is valid and whether the shop is open right now. Learn the three things everybody gets wrong: lunch breaks are a comma ('Mo-Fr 09:00-12:00,13:00-17:00'), public holidays are 'PH off', and days are two letters in English whatever the sign says. Take a screenshot of your trickiest string parsing without errors. Photo
  3. 3
    Add the twenty opening_hours tags with a changeset comment that names the street. Every Door builds the string from a form, and iD takes it as text in the hours field. Set the source to survey. If a shop already has hours that differ from the door, trust the door and update the tag. Take a screenshot of the changeset showing twenty or more shops changed. Photo
  4. 4
    Find one shop on the map that has closed in real life and retag it honestly. There's always one. If the unit is empty, change shop=whatever to disused:shop=yes and keep the building. If a new business has moved in, retag it as the new business with its own name and hours. Never delete the building because the shop went. Take a photo of the empty or changed shop front, and tell us in your write-up what you changed the tags to. Photo
  5. 5
    Check that an app now says 'open' or 'closed' for one of your shops. Click the shop on openstreetmap.org and the sidebar shows the hours straight away. OsmAnd and Organic Maps show 'open now' once they pull a fresh copy, which takes up to a month. Take a screenshot of the hours showing somewhere other than the editor, and tell us which string took you longest to get right. Photo