searchNearby method

Future<SearchNearbyResponse> searchNearby({
  1. required List<PlaceField> fields,
  2. required CircularBounds locationRestriction,
  3. List<String>? includedTypes,
  4. List<String>? includedPrimaryTypes,
  5. List<String>? excludedTypes,
  6. List<String>? excludedPrimaryTypes,
  7. NearbySearchRankPreference? rankPreference,
  8. String? regionCode,
  9. int? maxResultCount,
})
inherited

Search for place(s) of interest using a location.

Only the requested fields will be returned. If none specified, all fields will be returned.

Note that different fields can incur different billing.

For more info on nearby search: https://developers.google.com/maps/documentation/places/android-sdk/nearby-search

Implementation

Future<SearchNearbyResponse> searchNearby({
  required List<PlaceField> fields,
  required CircularBounds locationRestriction,
  List<String>? includedTypes,
  List<String>? includedPrimaryTypes,
  List<String>? excludedTypes,
  List<String>? excludedPrimaryTypes,
  NearbySearchRankPreference? rankPreference,
  String? regionCode,
  int? maxResultCount,
}) {
  throw UnimplementedError('searchNearby() has not been implemented.');
}