geoPoiLookup method

Future<GeoPoiLocationResp?> geoPoiLookup(
  1. String location,
  2. PoiType type, {
  3. String city = '',
  4. int number = 10,
})
inherited

Implementation

Future<GeoPoiLocationResp?> geoPoiLookup(String location, PoiType type,
    {String city = '', int number = 10}) async {
  Map param = {
    "location": location,
    "city": city,
    "number": Platform.isAndroid ? number : number.toString(),
    "type": type.code
  };

  Map? value = await _methodChannel.invokeMapMethod(
      MethodConstants.GeoPoiLookup, param);
  return value == null ? null : GeoPoiLocationResp.fromMap(value);
}