findAddressesFromCoordinates method

  1. @override
Future<List<Address>> findAddressesFromCoordinates(
  1. Coordinates coordinates
)
override

Search for an address using the given coordinates. coordinates is the coordinates to search for. example: Coordinates(40.714224, -73.961452)

Implementation

@override
Future<List<Address>> findAddressesFromCoordinates(
  Coordinates coordinates,
) async {
  final url =
      '$_host?key=$apiKey${language != null ? '&language=${language!}' : ''}&latlng=${coordinates.latitude},${coordinates.longitude}';
  return _send(url);
}