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.
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.
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!!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With