user3607798
user3607798

Reputation: 769

Getting the Suggestions from the Current Location when working with Google Places API

I'm working with Google Places API which gives the auto suggestions from the keyword mentioned in AutoCompleteTextView. Its working fine.

But when i enter some keyword(some text in the AutoCompleteTextView) it was giving the places according to the Current Location. but i need the places from the United States

Using the following Url to get the places

https://maps.googleapis.com/maps/api/place/autocomplete/json?input=?&types=geocode&sensor=false&AIzaSyAIjrt28Os8Eyp0rVQbdkKNXNi5YrGx0AE

Example

Please can i get any luck

Thank you

Upvotes: 1

Views: 1500

Answers (1)

Endzeit
Endzeit

Reputation: 5524

Refering to this article you can pass a location and a radius as parameter to your query which should be a solution to your problem. As location you could pass the middle of the United States and a radius that fits to all borders.

Taking this similar question into consideration this seems to be impossible other than the way I described it.

Upvotes: 0

Related Questions