-2

Seems like GoogleMap doesn't provide any API for gettings all streets from country (just from rectangular bounding box).

Maybe is possible to grab whole database with streets from the map, but I don't know how. Any map is appropriate.

Any advices?

Veaceslav Gaidarji
  • 4,261
  • 3
  • 38
  • 61
  • Similar to [Getting all streets visible in Google map's viewport](http://stackoverflow.com/questions/16495563/getting-all-streets-visible-in-google-maps-viewport) – Anto Jurković Jan 16 '14 at 13:04

1 Answers1

5

No, not only is not possible in the Google Maps API - extracting data like that is explicitly forbidden by the Google Maps/Google Earth APIs Terms of Service.

See: 10.1.3 Restrictions against Data Export or Copying. Especially (c) No Mass Downloads or Bulk Feeds of Content.

You could however try something like OpenStreetMap for example.

It allows you to export data for free although there are download limits in place.

Fraser
  • 15,275
  • 8
  • 53
  • 104
  • yeah, I read this. Maybe OpenStreetMap (because it's open :)) provides such API, but I haven't found any example. – Veaceslav Gaidarji Jan 16 '14 at 13:07
  • 1
    Can't you see the big green export button on the page I linked too? http://www.openstreetmap.org/export#map=5/51.495/7.603 – Fraser Jan 16 '14 at 13:13
  • 1
    If you want to grab a whole city worth of streets, you will almost certainly run into the download limits. The [Overpass API](http://wiki.openstreetmap.org/wiki/Overpass_API) allows you to request only certain kinds of objects (in your case streets). – Dmitri Goldring Jan 16 '14 at 21:07
  • 1
    @VeaceslavGaidarji If you need a whole country I suggest the exports from [geofabrik](http://download.geofabrik.de/) and handle this via various tools (osmosis) or just write a script which extracts the name for specific key value pairs: https://wiki.openstreetmap.org/wiki/Key:highway – Karussell Feb 11 '14 at 20:54