on-internet
← Community

Google Places API queryautocomplete restrictions by country doesn't work

Stack Overflow ·

I am using Google maps in my xamarin forms app and I wanted to restrict the queryautocomplete by country. Following the GoogleMaps Places API docs https://developers.google.com/places/web-service/autocomplete the optional parameter components should do the trick, but it's not working for me. Looking up KFC while restricted by country let's say TUNISIA (TN) for example.. brings up search results from Germany, France and Indonesia. Even changing the parameters order does nothing. My query results are here. The url format I'm using: var response = await _httpClient.GetAsync($"api/place/queryautoc

Comments

Sign in or sign up to comment and upvote.

No comments yet.