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

locked:conditional=yes @ (???-???)

0

Can someone offer some help with a locked gate. Looking to add the tag correctly.

The gate is OPEN - Summer during "1 April to 30 September, Daily, 10am until 5pm" Winter during "1 October to 31 March, Daily, 10am until 4pm"

Or I could simply note open at Business hours. If this is the correct way to go, can you please advise the correct tag?

Here's what I have so far (as a placeholder) barrier=swing_gate locked:conditional=yes @ (sunset-sunrise)

Any advice gratefully received.

asked 21 Jan '23, 06:38

MikeQu's gravatar image

MikeQu
11112
accept rate: 0%


One Answer:

0

My latest thoughts on this (https://wiki.openstreetmap.org/wiki/Key:opening_hours)

barrier=swing_gate locked:conditional=yes opening_hours=Apr 01-Sep 31: Mo-Su 10:00-17:00, Oct 01-Mar 31: Mo-Su 10:00-16:00

Intended to mean - This is a gate it is UNLOCKED when the business is OPEN, and LOCKEDwhen the business is CLOSED

answered 21 Jan '23, 07:03

MikeQu's gravatar image

MikeQu
11112
accept rate: 0%

That makes sense I guess.

But it should documented or even discussed somewhere...

(23 Jan '23, 10:42) H_mlet

Source code available on GitHub .