reGeocoding static method

Future<void> reGeocoding({
  1. required LatLng? point,
  2. int? scope,
  3. ReGeocodingResultBack? back,
})

逆地理编码

Implementation

static Future<void> reGeocoding({
  required LatLng? point,
  int? scope,
  ReGeocodingResultBack? back,
}) async {
  final String? jsonStr = await _channel.invokeMethod('reGeocoding', {
    "pointJson": json.encode(point),
    "scope": scope,
  });
  if (jsonStr != null) {
    Map? map = json.decode(jsonStr);
    if (map != null && back != null) {
      back(map['code'] as int, ReGeocodingResult.fromJson(map["data"]));
    }
  }
}