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 |
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. 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. answered 22 Jul '14, 23:30 SimonPoole ♦ 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
|