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

Relations/links between dependent tags such as opening hours

0

I want to add opening hours to the shops in a shopping mall. There are over 50 of them, and about 90% follow the standard opening hours of the mall (exceptions are banks and supermarkets inside the mall).

Is there a mechanism to automatically link/relate them together? So that, if the mall decides to open say 30 minutes later, I won't have to manually update each of them. Sort of "by default, assume this unless specified otherwise".

I could add the opening hours to the mall itself, but I think it wouldn't show when selecting a shop in e.g. OsmAnd (which shows "closes at Xh" when opening hours are available.

Edit: I found out about relations such as site but they do not seem widespread or even recommended anymore. There are some examples of malls, but it seems that the behavior as I described (assume the value from the relation as default, unless specified otherwise) does not exist.

asked 08 Sep '18, 12:24

voyageant's gravatar image

voyageant
1817815
accept rate: 0%

edited 09 Sep '18, 19:53


One Answer:

3

In principle you could add all objects on the site to a site relation and add an opening hours tag to that. However currently it is unlikely that that would be considered by a data consumer.

answered 09 Sep '18, 21:23

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Source code available on GitHub .