boundSearch static method

Future<void> boundSearch({
  1. required LatLng point,
  2. String? keyWord,
  3. int? score = 1000,
  4. int? page = 1,
  5. int? limit = 10,
  6. PoiResultBack? back,
})

周边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"]));
    }
  }
}