searchByAddress method

Future<GeocodingResponse> searchByAddress(
  1. String address, {
  2. Bounds? bounds,
  3. String? language,
  4. String? region,
  5. List<Component> components = const [],
})

Implementation

Future<GeocodingResponse> searchByAddress(
  String address, {
  Bounds? bounds,
  String? language,
  String? region,
  List<Component> components = const [],
}) async {
  final url = buildUrl(
    address: address,
    bounds: bounds,
    language: language,
    region: region,
    components: components,
  );
  return _decode(await doGet(url, headers: apiHeaders));
}