Reputation: 1436
I have problem, i cant get correct response with data from San Francisco. Google return data for all USA. I want get street address and coordinate for it.
I create request such as:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=new%20&types=geocode&language=en&sensor=true&key=____&components=country:us&location=37.773564,-122.445230&radius=500
Genetal data for create request
In request i added location and radius fields but it does not work.
Unfortunately I can not specify components=administrative_area:CA|country:US
i get "status" : "INVALID_REQUEST"
Thank you for response.
Upvotes: 0
Views: 12569
Reputation: 117314
you are requesting the autocomplete-Service, which returns predictions, not data like geocodes or addresses.
Use a places-search instead.
Upvotes: 2