hi there! Is it possible to extract a street list in csv with “city, postcode, street name” from osm maps?
I tried http://maposmatic.org/ but it extracts only streets of the area, no info about the city which streets belong.
I’m going deeper osmfilter but I can’t figured out getting “city, postcode, street name”.
Can you help me please?
Nobody answered because the OSM datamodel does not support this kind of operations well. Cities and postcode areas are not saved as polygons into the database. If they were it would be easy to make a query about streets and areas inside which the areas are. But now I do not believe it is possible to do what you do by using only OSM API of any sort. The way to go is to take OSM data, build the polygons into some external place and do the spatial analysis about street and corresponding areas there. If you are willing to go that way and if you can give me the exact tags which are needed for building the area polygons I believe I can show you an example by using GDAL and Spatialite.
The OSM database itself doesn’t contain the ‘addresses’ for most streets…they are calculated by the geocoder based on boundaries. Querying Nominatim at nominatim.openstreetmap.org for a specific city, and then looking at the ‘details’ screen, will give a list of all OSM entities that are ‘children’ of that area, though.
There is probably a more ‘automated’ way to do this, but someone else will have to mention that.