NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

accept rate: 0%


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 ♦

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.

permanent link

answered 14 Jul '22, 10:58

Kovoschiz's gravatar image

accept rate: 16%

edited 14 Jul '22, 11:02

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 12 Jul '22, 13:33

question was seen: 1,126 times

last updated: 14 Jul '22, 11:02

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum