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

Is there a way to automatically count houses in a street/area?

asked 14 Sep '16, 12:19

hoatzin64's gravatar image

hoatzin64
26112
accept rate: 0%


This query will generate a csv of all the "houses" in your current view. Just scroll down to see the number of records in the file.

This query does the exact same thing, but visualizes them on a map. You can then export them in any number of formats.

You can also draw a bounding box on the map to have better control of what gets counted.

You need both "way" and "relation", because houses with a courtyard are relations in the OSM data model.

Houses might be mapped as building=yes, not building=house. To get all buildings instead, simply replace ["building"="house"] with ["building"].

If this does not answer your question, please edit your question to clarify what exactly you're trying to do. If it does, please mark the V next to this answer to mark your question as answered.

permanent link

answered 14 Sep '16, 14:16

joost%20schouppe's gravatar image

joost schouppe
3.4k245087
accept rate: 12%

Hi Joost,

I wish to thank you for your response to this post.

Sorry to contact you this way, but I have an additional question, is it also possible to draw a polygon or only possible to draw a square?

Thanks a lot in advance, Gill

permanent link

answered 07 Dec '23, 09:18

Gill's gravatar image

Gill
1
accept rate: 0%

edited 07 Dec '23, 09:19

Yep, you can draw your own polygon. For example, this query draws a rough outline around Belgium: https://overpass-turbo.eu/s/1Er7 You simply need to list the coördinates that form your polygon. You could use a tool like https://geojson.io to draw something on a map. It is also possible to search within the outline of an existing OpenStreetMap polygon.

(07 Dec '23, 11:05) joost schouppe

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×16
×3

question asked: 14 Sep '16, 12:19

question was seen: 22,472 times

last updated: 07 Dec '23, 11:05

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