lejard-h / google_maps_webservice

BSD 3-Clause "New" or "Revised" License
168 stars 221 forks source link

Autocomplete without location and radius and with strictbounds gives INVALID_REQUEST #119

Open 1140251 opened 3 years ago

1140251 commented 3 years ago

I can't call the autocomplete function without location and radius. I copied the request made by the autocomplete function and performed it in postman to check what was wrong. If I make any request with the flag strictbounds will look for the location and radius, but I don't want to specify one.

An example https://maps.googleapis.com/maps/api/place/autocomplete/json?input=googleplex&strictbounds=false&key=my_key&sessiontoken=my_token

if removed the strictbounds it works https://maps.googleapis.com/maps/api/place/autocomplete/json?input=googleplex&key=my_key&sessiontoken=my_token

Can you remove the flag strictbounds if no location and radius is specified?