searchReGeocode method
逆地理编码(坐标转地址)
Implementation
Future<ReGeocodeResult> searchReGeocode(
LatLng point,
double radius,
int latLonType,
) {
L.p('方法searchReGeocode dart端参数: point -> ${point.toJsonString()}, radius -> $radius, latLonType -> $latLonType');
return _searchChannel
.invokeMethod(
'search#searchReGeocode',
{
'point': point.toJsonString(),
'radius': radius,
'latLonType': latLonType,
},
)
.then((result) => result)
.then((jsonResult) => ReGeocodeResult.fromJson(jsonDecode(jsonResult)));
}