reGeocoding static method
逆地理编码
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"]));
}
}
}