Hello,

I have problem with extract datas, which I need. I need data like: "city;street" (but i have country file, with all streets and cities in selected country)

I know that some of information i can get from "addr:street" but much more streets we can find in tag k="highway". With osmfilter I can filter that datas, but there is no connection with city name?

Is it possible to filter/convert streets (highway=*) from osm file and connected it to specify city (place=town)?

asked 22 Jul '14, 22:38

miklosz_deki's gravatar image

miklosz_deki
1111
accept rate: 0%


Does the country in question have aministrative boundary polygons for the cities? If yes you probably can use the overpass api to get all streets in a city.

See http://overpass-turbo.eu/

A further method to get the information is to use nominatim ( http://nominatim.openstreetmap.org/ ) which will build hierarchies with the required information (this will even work approximately with place nodes if the polygons are missing).

Note that in both cases you should respect the corresponding acceptable use policies and protentially run your own servers.

permanent link

answered 22 Jul '14, 23:30

SimonPoole's gravatar image

SimonPoole ♦
39.0k13289620
accept rate: 19%

edited 23 Jul '14, 09:45

1

In addition, you have to know that "addr:street" is not a tag you find normally on the "street" itself but on an "address" item (a node or a small building polygon along the street road). Also the "highway=*" key is used for all roads, not only the ones in cities. They can be combined with a "name" tag but not necessarily (OSM is not strict in attributes like in classic GIS datasets)

(23 Jul '14, 12:53) Pieren
Your answer
toggle preview

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:

×115
×85

question asked: 22 Jul '14, 22:38

question was seen: 2,642 times

last updated: 23 Jul '14, 12:53

powered by OSQA