The Places.GeoDataApi.getAutocompletePredictions method, Places.GeoDataApi.getAutocompletePredictions addition to AutocompleteFilter , also has LatLngBounds , which allows you to filter results by coordinates.
The area turns out something like this:
LatLngBounds latLngBounds = LatLngBounds.builder() .include(new LatLng(60.137332, 29.9322964)) .include(new LatLng(60.197112, 30.234420)) .include(new LatLng(60.120908, 30.579664)) .build();
But "inside" he will get two points from this to limit the area - with the minimum coordinates and the maximum.
Or transfer them immediately to the constructor:
LatLngBounds latLngBounds = new LatLngBounds(new LatLng(60.117332, 29.9322964), new LatLng(60.197112, 30.234420));
Which is the same.