calculateDriveRoute method
计算驾驶路线
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)));
}