geoPoiRangeLookup method

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

Implementation

Future<GeoPoiLocationResp?> geoPoiRangeLookup(String location, PoiType type,
    {int radius = 5, int number = 10}) async {
  Map param = {
    "location": location,
    "radius": Platform.isAndroid ? radius : radius.toString(),
    "number": Platform.isAndroid ? number : number.toString(),
    "type": type.code
  };
  Map? value = await _methodChannel.invokeMapMethod(
      MethodConstants.GeoPoiRangeLookup, param);
  return value == null ? null : GeoPoiLocationResp.fromMap(value);
}