geoPoiRangeLookup method
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);
}