geocode static method

Future<List<UPlacemark>> geocode(
  1. String address, {
  2. String? locale,
})

Places matching an address (Android, iOS, macOS). Empty when unavailable.

Implementation

static Future<List<UPlacemark>> geocode(String address, {String? locale}) async {
  if (kIsWeb) return const <UPlacemark>[];
  final List<Object?>? raw = await _call<List<Object?>>("geocode", <String, Object?>{"address": address, "locale": locale});
  return (raw ?? <Object?>[]).whereType<Map<Object?, Object?>>().map(UPlacemark.fromMap).toList();
}