Getting addresses of residential buildings with information about the locality type

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
1112
accept rate: 0%