Question: I'm using below method to get autocomplete result for input string of GMSPlacesClient class:

```
- (void)autocompleteQuery:(NSString *)query
               bounds:(GMSCoordinateBounds * GMS_NULLABLE_PTR)bounds
               filter:(GMSAutocompleteFilter * GMS_NULLABLE_PTR)filter
             callback:(GMSAutocompletePredictionsCallback)callback

```

I tried to implement bounds by multiple ways but none of them worked, I wonder if there is any standard way to get country specific results with GMSCoordinateBounds?

Answer: 
in **Swift 5** and later

you can custom your search by configuring the `GMSAutocompleteFilter`, and specify the country from its attribute `country`

example :

```
let filter = GMSAutocompleteFilter()
filter.country = "MA"
autocompleteController.autocompleteFilter = filter

```

the country should be a ISO 3166-1 Alpha-2 country code (case insensitive).

you can find those codes from here: [Countries ISO Codes](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)
The full list of country codes can be found here:  

<https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>

Use it with:

```
let filter = GMSAutocompleteFilter()
filter.country = "YOURCountryCode"

```