searchByLocation method

Future<GeocodingResponse> searchByLocation(
  1. Location location, {
  2. String? language,
  3. List<String> resultType = const [],
  4. List<String> locationType = const [],
})

Implementation

Future<GeocodingResponse> searchByLocation(
  Location location, {
  String? language,
  List<String> resultType = const [],
  List<String> locationType = const [],
}) async {
  final url = buildUrl(
    location: location,
    language: language,
    resultType: resultType,
    locationType: locationType,
  );

  return _decode(await doGet(url, headers: apiHeaders));
}