How to create a form of opening hours inheritance between POI?

Consider the following cases:

  1. A large food court. Opening hours are set.
    Inside the food court, many small booths selling food. Each has a name, a type of cuisine… but the opening hours of every booth matches the one of the main amenity.
    If the food court changes its opening hours one day, every booth will change its opening hours accordingly.

  2. A service road across the car park of a supermarket.
    Permissive access here for anyone passing by… only during the opening hours of the supermarket (gates are closed outside those hours).

In both cases, we will commonly copy the opening hours from an object to another and that will be fine.

The problem is: If the opening hours of the main object change, how will we ensure that mappers do not forget to update other objects? Such things are too easy to overlook, that will quickly produce incoherent data.

Could there be a way to tag opening hours on an object to say “linked to node XXXXX”? e.g. through a relation. That way, opening hours will be written only once and changes would automatically reflect on any other object that needs them.
Or are we complicating things too much here?

I think that would complicate things too much. Just add a note explaining the situation, and copy the opening hours manually (or just leave them out).

I guess the typical approach with OSM is to turn this into a QA problem: find places with opening hours which are contained within another place itself with opening hours where these opening hour values are different. You can certainly do some of this with Overpass.

1 Like
  1. I’d say the better practice is to leave a note on the food court node/way to let users know that when updating the opening hours of the food court, the single booth should updated too.
  2. Same case as before: leave a note to let other users know what to do
1 Like