My goal is to restrict the Autocomplete results from the Google Places Android API to a particular country (United States) only.
I am using the following API:
For new Place api 2019, You have to do this
FindAutocompletePredictionsRequest request =
FindAutocompletePredictionsRequest.builder()
.setLocationBias(bounds)
.setCountry("au") //to set country only for e.g australia
.setTypeFilter(TypeFilter.ADDRESS)
.setSessionToken(token)
.setQuery(query)
.build();