calculateDriveRoute method

Future<DriveRouteResult> calculateDriveRoute(
  1. RoutePlanParam param
)

计算驾驶路线

Implementation

Future<DriveRouteResult> calculateDriveRoute(RoutePlanParam param) {
  final _routePlanParam = param.toJsonString();
  L.p('方法calculateDriveRoute dart端参数: _routePlanParam -> $_routePlanParam');
  return _searchChannel
      .invokeMethod(
        'search#calculateDriveRoute',
        {'routePlanParam': _routePlanParam},
      )
      .then((result) => result)
      .then((jsonResult) => DriveRouteResult.fromJson(jsonDecode(jsonResult)));
}