geoCityLookup method

Future<GeoPoiLocationResp?> geoCityLookup(
  1. String location, {
  2. String range = 'world',
  3. int number = 10,
})
inherited

Implementation

Future<GeoPoiLocationResp?> geoCityLookup(String location,
    {String range = 'world', int number = 10}) async {
  Map param = {
    "location": location,
    "range": range.isEmpty ? 'world' : range,
    "number": Platform.isAndroid ? number : number.toString()
  };
  Map? value = await _methodChannel.invokeMapMethod(
      MethodConstants.GeoCityLookup, param);
  return value == null ? null : GeoPoiLocationResp.fromMap(value);
}