Hi everyone. I was thinking… Is there a way to extract the list with the street names of a specific city? The city of Giliarca begins to have quite a number of streets, and it would be very useful to have a list … I do not always remember if the name of a street already exists…
Leave a comment
Log in to leave a comment
Discussion
Comment from wangi on 6 August 2018 at 11:23
I’d use osmconvert to cut down the nightly pbf backup to the area you are interested in, and then osmfilter with –keep=”highway=” and –out-key=name. I done that, or something similar, to create https://wiki.opengeofiction.net/wiki/index.php/OGF:Gobras_City/Street_names
Other, probably simpler, approach would be to use Overpass, at https://osm3s.opengeofiction.net/overpass-turbo/ and example at osm.wiki/Overpass_API/Overpass_API_by_Example#List_of_streets
I don’t know if you have a relation covering the city; but here’s it coded up for Gobras City: https://osm3s.opengeofiction.net/overpass-turbo/?Q=%5Bout%3Acsv(%22name%22%3Bfalse)%5D%3B%0Aarea%5Bname%3D%22Gobras%20City%22%5D%3B%0Away(area)%5Bhighway%5D%5Bname%5D%3B%0Aout%3B&C=20.72625;86.70685;14&R
Comment from wangi on 6 August 2018 at 13:24
For your whole country: https://osm3s.opengeofiction.net/overpass-turbo/?Q=%5Bout%3Acsv(%22name%22%3Bfalse)%5D%3B%0Aarea%5Bname%3D%22Gardensa%22%5D%3B%0Away(area)%5Bhighway%5D%5Bname%5D%3B%0Aout%3B&C=20.72625;86.70685;14&R
Comment from eleinads on 6 August 2018 at 15:54
Wangi, Great! It was exactly what I was looking for!