Mutation
创建货车路线
使用 createTruckRoute mutation 创建新的货车路线。当您希望为电动货车计算起点与终点之间的充电停靠点、能耗和行驶时间时,此 mutation 非常有用。
Mutation
创建货车路线需要提供 vehicle、origin 和 destination。还可以选择添加 via 点、operators、weather 或其他偏好设置来优化计算。该 mutation 会返回货车路线 id,可用于获取路线详情或订阅更新。
参数
字段
操作可能会失败。请考虑以下错误场景以正确处理。有关错误的更多信息 这里。
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.
此内容是否有帮助?