findAddressesFromCoordinates method

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

Search corresponding addresses from given coordinates.

Implementation

@override
Future<List<Address>> findAddressesFromCoordinates(
    Coordinates coordinates) async {
  var languageArgument = language == null ? '' : '&language=' + language!;

  final url =
      '$_host?key=$apiKey$languageArgument&latlng=${coordinates.latitude},${coordinates.longitude}';
  return _send(url);
}