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

Tagging the number of entrances to apartment buildings

1

Hi! I need information about the number of entrances in different apartment buildings within my project. How can I get this information in Osm? I know that there is an entrance=" " tag indicating the presence of an entrance, but this is not exactly what I need. Help (:

asked 12 Jul '22, 13:33

1ghtmare's gravatar image

1ghtmare
26224
accept rate: 0%

1

What's wrong with counting the number of nodes with an entrance=* tag?

(13 Jul '22, 10:20) scai ♦

counting the number of entrances by hand is not always convenient, more precisely, in most cases it is not convenient, especially if I need a rather large amount of data on houses

(13 Jul '22, 11:46) 1ghtmare

Right. I was thinking more of an automated solution for counting.

(13 Jul '22, 11:51) scai ♦

One Answer:

1

First of all, this degree of micro detail is not widespread yet. You will be counting the amount of entrance= added in OSM only. Better find your country's open data, if they have this info at all on buildings.

This seems difficult to define. What about private, service, and emergency ones? Then there's the problem of internal doors to a courtyard, so you would need think about building doors vs site access points (which may not be a door, or have any gates) to public streets. An access point could further have multiple sides, with individual doors added at the extreme end. If there is a external staircase, above-ground access, or even individual doors on each floors, you will effectively be double counting many. Computing this will be expensive, or not possible entirely from the lack of tags.

Could be more narrow yet specific to count addr:flats= (interestingly only half are used together with entrance=), and addr:unit if it is used according to the original definition of different parts accessible by a certain door only (instead of the common meaning of "unit" that's akin to addr:door=). Address data is expected to be more complete in OSM, although the extent is more on addr:housenumber= depending on if there is an import. Then you will at least have some idea of how they are distributed.

answered 14 Jul '22, 10:58

Kovoschiz's gravatar image

Kovoschiz
2.4k31147
accept rate: 16%

edited 14 Jul '22, 11:02

Source code available on GitHub .