searchReGeocode method

Future<ReGeocodeResult> searchReGeocode(
  1. LatLng point,
  2. double radius,
  3. int latLonType
)

逆地理编码(坐标转地址)

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)));
}