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

Hi!

I'm new to OSM.

I need to get a list of addresses of residential buildings with information about the locality type (village or city).

When I receive a list of nodes and select residential buildings, I do not receive information about the type of locality. As I understand it, this information is contained in the relation or related objects. How i can add this information to target nodes?

I'm doing it:

osmconvert.exe target-area.osm.pbf --all-to-nodes --max-objects=1000000000 -o=target-nodes.xml
osmfilter.exe target-nodes.xml --keep-nodes="building=residential or building=village or ... " -o=buildings.xml

... and then get the addresses from the received nodes.

Thanks in advance!

asked 19 Oct '23, 16:29

evsar's gravatar image

evsar
11112
accept rate: 0%

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:

×535
×315
×230
×19

question asked: 19 Oct '23, 16:29

question was seen: 526 times

last updated: 19 Oct '23, 16:29

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