searchByComponents method

Future<GeocodingResponse> searchByComponents(
  1. List<Component> components, {
  2. Bounds? bounds,
  3. String? language,
  4. String? region,
})

Implementation

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