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

Hi Iam quite new to open street map so have a pretty basic question

How would I go about extracting all the street data from an osm file.

Eg

Street number , street name, suburb, post code , long, lat

Regards Adrian

asked 24 May '13, 17:24

adrian's gravatar image

adrian
11112
accept rate: 0%


The tag you'll find most streets under is highway. There are lots of different used values for highway, e.g. highway=motorway, highway=residential.

Also, what is the lat/lon of a street in your context - the middle node?

Suburbs and postcodes are not connected to streets other than through their respective geographic location, which means you need at least some kind of GIS-like functionality to get the suburb for a street (or hope there are addresses that reference the street).

Probably you need to load a suitable OSM extract into a PostGIS database and work from there. You can start with http://wiki.openstreetmap.org/wiki/Osm2pgsql and read on from there.

Also, note that OSM street data is not complete and that suburb data quality and quantity and suburb tagging may vary from country to country.

So no, thats not a basic question.

permanent link

answered 24 May '13, 19:08

gormo's gravatar image

gormo
2.9k32660
accept rate: 13%

-1

You are not the first one asking this question.

Please type keywords like "extract street" or similar in the searchbox of this FAQ site, and you will get a number of hints about your aim.

permanent link

answered 25 May '13, 20:06

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

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:

×13

question asked: 24 May '13, 17:24

question was seen: 7,212 times

last updated: 25 May '13, 20:06

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