Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of all street and road names in Google in API

Am doing a location based app.When using GPS, it provides with street names from Google API. When user need to enter it manually, for a autocomplete text view am in need of names of all street and roads in Google API. Where could i get all street and roads name which google API provides when using GPS? I ve searched everywhere but in vain :( Thanks in advance.

like image 618
cyn0 Avatar asked Jun 12 '12 13:06

cyn0


3 Answers

The Google Places API suggests search results for city/street names etc. which you can use for an AutoCompleteTextView.

Here is a running JS demo for testing the results.

Because your using Maps API V3, here is the reference to google.maps.places.Autocomplete

Here you can find an API for Android.

like image 73
Steve Benett Avatar answered Oct 03 '22 23:10

Steve Benett


Thanks above :) Actually I found an another way too.. the names of the streets and roads in xml returned by google api are marked as "route".. so I parsed the xml having type="route" to get only road and street names!!

like image 28
cyn0 Avatar answered Oct 04 '22 00:10

cyn0


As far as I can find, Google does not provide a database of street names for public download, but this site does: Open Street Map

These databases are available for free download. They contain geographical information about the whole planet. I hope you find them useful.

like image 44
Jonathan Vance Avatar answered Oct 04 '22 01:10

Jonathan Vance