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

Amenity overlap - parking within schools, hospitals etc

2

Is it OK to have an amenity=parking inside, say an amenity=hospital area (where the outer area represents the hospital site, not just a single building)?

It feels wrong to have overlapping keys of the same type. But so does a multipolygon - the parking area IS part of the hospital.

I've come across this dialemma a few times (e.g. leisure=playground inside a leisure=park). Overlapping the areas seems to render OK but is it good practice?

asked 20 Apr '12, 11:24

Pete's gravatar image

Pete
41114
accept rate: 0%


One Answer:

2

There are instances where it's perfectly correct to have multiple overlapping areas, I think you've identified a couple of them. Carry on!

Where there comes a problem is if you try to have multiple values of the same key on the same node/way/area (aka "overload the key"). For example, if you put amenity=parking;hospital, what displayed would depend on how the renderer interprets that (would it display as parking? as hospital? as both? as neither?)

answered 20 Apr '12, 15:58

neuhausr's gravatar image

neuhausr
7.5k870121
accept rate: 21%

Source code available on GitHub .