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

Hey,

I was wondering if there is a tool to extract housenumbers from a OSM XML or pbf extract. I know this is a difficult task, but maybe someone already wrote a tool. Probably it would need Overpass API to get the surroundings borders that might not be included in the extract.

Thanks in advance!

asked 01 Apr '15, 19:46

kerosin's gravatar image

kerosin
411131627
accept rate: 0%


Depends on what you want with your house numbers! Nominatim has an export facility which might be useful. I hear that people are also using https://github.com/ltog/osmi-addresses to extract house numbers, even if that was originally made as a quality control tool.

permanent link

answered 01 Apr '15, 19:49

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Thanks. I want to store them in a separate database - just for testing purposes. SpatiaLite (SQLite) like in OSMI would be fine. So ./extract.osm.pbf output.sqlite would do the job?

(01 Apr '15, 20:01) kerosin

Note that addresses are basically stored in three ways: as part of polygons (closed ways, multipolygons), lines (non-closed ways) and points (nodes). Unless you extract all these geometry types, you may not get a full picture of addressing in different regions. E.g. for line features, address interpolation values can be stored ("from" - "to" values). Since, as with the line features, different addressing systems are in use, you will generally need to extract a different set of keys with each geometry type, and also consider / extract multiple addressing keys, as each country / region may make a different use of the available keys.

Even with all relevant keys extracted, making sense and technically using complete address information, will be hard across different regions. Of course, displaying just housenumbers (addr:housenumber=x), is less difficult and can be done relatively easy.

permanent link

answered 02 Apr '15, 18:44

mboeringa's gravatar image

mboeringa
1.5k21527
accept rate: 9%

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:

×63

question asked: 01 Apr '15, 19:46

question was seen: 3,966 times

last updated: 02 Apr '15, 18:44

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