Skip to main content

So I used the solution (OpenStreetMap) from @Spacedman:

  1. Download the .pbf for your country https://download.geofabrik.de

  2. Download the polygon file for the desired municipality from https://github.com/JamesChevalier/cities or create your polygon file (.poly) here : http://share.mapbbcode.org/

  3. Download lasted version from Osmosis https://wiki.openstreetmap.org/wiki/Osmosis#Latest_stable_version

  4. Do this:

    osmosis --read-pbf-fast you_file_country-latest.osm.pbf file="your_file_country-latest.osm.pbf" --bounding-polygon file="your_municipality_polygon.poly" --write-xml file="your_file_out.osm"

enter image description here 5. In the .osm file, you obtain all the street names, to extract the names use the option (regex) of notepad++

enter image description here

It's complex but it works, but I still have to find a way to do it directly from Google API

Mary
  • 201
  • 2
  • 5