This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How does one tag a complex opening_hours, in America?

0

I would like to know how to tag this opening hours by using this tool http://openingh.openstreetmap.de/evaluation_tool/ . I don't know how to successful tag it with all the ending hours of the week ending at 01:00 in the morning. Thanks

MONDAY: 6:00AM - 1:00AM

TUESDAY: 6:00AM - 1:00AM

WEDNESDAY: 6:00AM - 1:00AM

THURSDAY: 6:00AM - 1:00AM

FRIDAY: 6:00AM - 6:00AM

SATURDAY: 6:00AM - 6:00AM

SUNDAY: 6:00AM - 1:00AM

asked 02 Jun '14, 09:24

frankthetankk's gravatar image

frankthetankk
1067712
accept rate: 0%

edited 02 Jun '14, 09:25

1

What's "6:00AM - 6:00AM" supposed to mean? Opened until the next day? Or just for 60 seconds? :)

(02 Jun '14, 09:57) scai ♦

3 Answers:

0

For now I excluded your odd opening hours for Friday and Saturday.

The opening hours specification states: "If the second time is earlier then the first one, it is assumed to be on the next day.". Therefore specifying a time range which includes the next day is perfectly valid:

Mo-Th 06:00-01:00; Su 06:00-01:00

Alternatively you could just specify the opening hours for each day separately. It will look more complicated but means exactly the same:

Mo-Th 00:00-01:00,06:00-24:00; Fr 00:00-01:00; Su 06:00-24:00

There is also a nice plugin for JOSM: OpeningHoursEditor. It makes editing opening hours quite easy. But always double-check the result, there are some bugs and it doesn't support the whole opening hours specification.

Also see the opening hours evaluation tool.

answered 02 Jun '14, 10:17

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

edited 02 Jun '14, 10:18

Thanks for trying to help. I already linked the opening hours evaluation tool above and was having problems getting the correct outcome. Plus you left out Saturday. Your code didn't seem to work out.

(02 Jun '14, 22:41) frankthetankk

I left out Friday and Saturday because 6:00AM - 6:00AM didn't make any sense to me and you didn't react to my comment asking about clarification.

(03 Jun '14, 07:51) scai ♦

0

Past midnight, it's the next day. So add the 0-1am section in the next day. You can have multiple sections per day. This is explained in the wiki. Assuming you mean that this POI is open 24h on friday and saturday, it gives:

Mo-Su 00:00-01:00,18:00-24:00; Fr,Sa 00:00-24:00

You may find the josm plugin easyer to use than this webpage.

As a side note, avoid using the 12h format unless you absolutely need to. It's confusing.

answered 02 Jun '14, 10:23

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
17.3k18152249
accept rate: 19%

Thanks for trying to help. Your code didn't work out the way I asked in the question above.

(02 Jun '14, 22:42) frankthetankk

0

Mo-Fr 00:00-01:00,06:00-24:00; Sa,Su 00:00-24:00

I figured out the correct opening hours on my own from using the OpeningHoursEditor.

answered 02 Jun '14, 22:44

frankthetankk's gravatar image

frankthetankk
1067712
accept rate: 0%

Source code available on GitHub .