boundSearch static method
周边POI
Implementation
static Future<void> boundSearch({
required LatLng point,
String? keyWord,
int? score = 1000,
int? page = 1,
int? limit = 10,
PoiResultBack? back,
}) async {
final String? jsonStr = await _channel.invokeMethod('boundSearch', {
"pointJson": json.encode(point),
"score": score,
"keyWord":keyWord,
"page": page,
"limit": limit,
});
if (jsonStr != null) {
Map? map = json.decode(jsonStr);
if (map != null && back != null) {
back(map['code'] as int, PoiResult.fromJson(map["data"]));
}
}
}