Mutation
创建货车路线
使用 createTruckRoute 变更创建新的货车路线。当您想为电动货车计算起点与终点之间的充电停靠点、能耗和行驶时间时,此操作非常有用。
变更
创建货车路线需要 vehicle、origin 和 destination。您还可以添加 via 点、operators、weather 或其他偏好设置来优化计算。该变更会返回货车路线的 id,可用于获取路线详情或订阅更新。
参数
input· CreateTruckRouteInput· required字段
ID· ID操作可能会失败。请考虑以下错误场景以正确处理。有关错误的更多信息 here.
truck_route_axles_in_use_below_allowed- The value set in $PATH must be greater than 0.
truck_route_trailer_axles_in_use_below_allowed- The value set in $PATH must be greater than 0.
truck_route_trailer_combined_dimensions_below_allowed- The value set in $PATH must be greater than 0.
truck_route_trailer_configuration_required- Tractor units require the use of semi-trailer for the entire route. Please specify the semi-trailer configuration in: $PATHS.
truck_route_trailer_count_below_allowed- The value set in $PATH must be greater than 0. If the vehicle has no trailers, omit the complete object.
truck_route_trailer_unladen_weight_below_allowed- The value set in $PATH must be greater than 0.
vehicle_type_not_allowed- Vehicle of type $TYPE is not allowed for this operation.
此内容是否有帮助?