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

is there a way to describe which entrance leads to an amenity

2

If there are several amenitys in a building with several entrances, is there a way to describe which amenity can be reached by which entrance. e.g. a Building with two entrances. One leads to flats and the other one is only for the shop in the front.

asked 21 Jun '13, 21:05

Ogmios's gravatar image

Ogmios
766202639
accept rate: 25%


2 Answers:

3

You could map the building indoors (two ways, each leading from an entrance to one amenity).

I could also think(!, I never saw this) of a relation assigning the different entrances to objects.

answered 24 Jun '13, 03:40

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 24 Jun '13, 11:46

1

For the simple case you could just put all the amenity tags and the entrance tag on the same node on the building outline. But this doesn't solve the general problem. There could be three entrances on different sides of the building of which two lead to the amenity and one doesn't. In that case see aseerel's answer for a possible solution.

answered 24 Jun '13, 06:29

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

Source code available on GitHub .