Adds a task
Creates a new MVRP task. Use "GET /api/v1/vrs/result/mvrp/<task_id>" to get task status.
HTTP Request
POST https://courier.yandex.ru/api/v1/vrs/add/mvrp\
?parent_task_id={string}\
&taxi_types={string}\
&company_id={integer}\
&lang={string}
Query Parameters
parent_task_id | string Parent task id. |
taxi_types | string Comma-separated list of taxi types that would be used for routing (e.g. |
company_id | integer Task company id. |
lang | string Response locale in RFC-3066 format. |
parent_task_id | string Parent task id. |
taxi_types | string Comma-separated list of taxi types that would be used for routing (e.g. |
company_id | integer Task company id. |
lang | string Response locale in RFC-3066 format. |
* Required parameter
Request Body
{ "depot": { "address": string, "crossdock_safety_waiting_duration_s": number, "description": string, "finish_service_duration_s": number, "flexible_start_time": boolean, "hard_time_window": string, "hard_window": boolean, "package_throughput": { "kg_per_hour": number, "units_per_hour": number }, "penalty": { "early": { "fixed": number, "minute": number }, "late": { "fixed": number, "minute": number }, "out_of_time": { "fixed": number, "minute": number }, "package_throughput": { "fixed": number, "kg": number, "unit": number }, "throughput": { "fixed": number, "kg": number, "unit": number, "vehicle": number } }, "point": { "lat": number, "lon": number }, "preliminary_service_duration_s": number, "preset_id": string, "ref": string, "service_duration_s": number, "throughput": { "kg_per_hour": number, "units_per_hour": number }, "time_window": string, "time_windows": [ { "hard_time_window": string, "time_window": string } ], "time_windows_loading": { "hard_time_window": string, "time_window": string, "time_windows": [ { "hard_time_window": string, "time_window": string } ] }, "time_windows_refilling": { "hard_time_window": string, "time_window": string, "time_windows": [ { "hard_time_window": string, "time_window": string } ] }, "time_windows_unloading": { "hard_time_window": string, "time_window": string, "time_windows": [ { "hard_time_window": string, "time_window": string } ] }, "title": string, "type": string }, "depots": [ { "address": string, "crossdock_safety_waiting_duration_s": number, "description": string, "finish_service_duration_s": number, "flexible_start_time": boolean, "hard_time_window": string, "hard_window": boolean, "package_throughput": { "kg_per_hour": number, "units_per_hour": number }, "penalty": { "early": { "fixed": number, "minute": number }, "late": { "fixed": number, "minute": number }, "out_of_time": { "fixed": number, "minute": number }, "package_throughput": { "fixed": number, "kg": number, "unit": number }, "throughput": { "fixed": number, "kg": number, "unit": number, "vehicle": number } }, "point": { "lat": number, "lon": number }, "preliminary_service_duration_s": number, "preset_id": string, "ref": string, "service_duration_s": number, "throughput": { "kg_per_hour": number, "units_per_hour": number }, "time_window": string, "time_windows": [ { "hard_time_window": string, "time_window": string } ], "time_windows_loading": { "hard_time_window": string, "time_window": string, "time_windows": [ { "hard_time_window": string, "time_window": string } ] }, "time_windows_refilling": { "hard_time_window": string, "time_window": string, "time_windows": [ { "hard_time_window": string, "time_window": string } ] }, "time_windows_unloading": { "hard_time_window": string, "time_window": string, "time_windows": [ { "hard_time_window": string, "time_window": string } ] }, "title": string, "type": string } ], "locations": [ { "address": string, "allow_trailers": boolean, "client_service_duration_s": number, "comments": string, "crossdock_mode": string, "crossdock_service_duration_s": number, "custom_value": number, "delivery_deadline": string, "delivery_to_any": [ {} ], "depot_duration_s": number, "depot_expiring_time": string, "depot_ready_time": string, "description": string, "hard_time_window": string, "hard_window": boolean, "in_lifo_order": boolean, "load_types": [ string ], "max_total_vehicles": integer, "may_drop_in_crossdock": boolean, "optional_tags": [ { "tag": string, "value": number } ], "parking_service_duration_s": number, "penalty": { "delivery_deadline": { "fixed": number, "minute": number }, "drop": number, "early": { "fixed": number, "minute": number }, "late": { "fixed": number, "minute": number }, "out_of_time": { "fixed": number, "minute": number }, "transit_time": {} }, "phone": string, "pickup_from_any": boolean, "point": { "lat": number, "lon": number }, "preset_id": string, "ref": string, "required_tags": [ string ], "sequence_order": integer, "service_duration_s": number, "shared_service_duration_s": number, "shared_with_company_ids": [ integer ], "shipment_size": { "custom": {}, "units": number, "volume": { "align": string, "depth_m": number, "height_m": number, "type": string, "width_m": number }, "volume_cbm": number, "weight_kg": number }, "time_window": string, "time_windows": [ { "hard_time_window": string, "time_window": string } ], "title": string, "transit_time": { "hard_limit_s": number, "limit_s": number }, "type": string, "use_in_proximity": boolean } ], "options": { "absolute_time": boolean, "avoid_tolls": boolean, "balanced_groups": [ { "id": string, "penalty": { "hour": number, "stop": number } } ], "close_locations_during_post_optimization_only": boolean, "critical_lateness_risk_probability": number, "date": string, "enable_vehicle_classes": boolean, "fix_planned_shifts": boolean, "global_proximity_factor": number, "ignore_min_stops_for_unused": boolean, "ignore_zones": boolean, "incompatible_load_types": [ "array" ], "incompatible_zones": [ "array" ], "load_when_ready": boolean, "location_groups": [ { "dependent": boolean, "location_ids": [ {} ], "solid": boolean, "title": string } ], "matrix_router": string, "max_drop_penalty_percentage": number, "merge_multiorders": boolean, "minimize_lateness_risk": boolean, "penalize_late_service": boolean, "penalty": { "drop_penalty_percentage": { "fixed": number, "per_percent": number }, "multiorders": { "per_extra_point": number, "per_extra_vehicle": number, "per_extra_visit": number } }, "points_throughputs": [ { "penalty": { "throughput": { "fixed": number, "kg": number, "unit": number, "vehicle": number } }, "point": { "lat": number, "lon": number }, "throughput": { "kg_per_hour": number, "units_per_hour": number } } ], "post_optimization": boolean, "preset_id": string, "proximity_factor": number, "quality": string, "restart_on_drop": boolean, "routing_mode": string, "template_rest_schedules": [ { "id": string } ], "wait_in_multiorders": boolean, "weighted_drop_penalty": boolean }, "vehicles": [ { "allow_different_depots_in_route": boolean, "allowed_zones": [ string ], "capacity": { "custom": {}, "limits": { "units_perc": number, "volume_perc": number, "weight_perc": number }, "units": number, "volume": { "depth_m": number, "height_m": number, "width_m": number }, "weight_kg": number }, "close_locations": [ { "distance_till_service_m": { "penalty": number, "value": number }, "duration_till_service_s": { "penalty": number, "value": number }, "routing_mode": string, "search_radius_m": number, "soft_search_radius_m": number } ], "crossdock_mode": string, "depot_extra_service_duration_s": number, "excluded_tags": [ string ], "fixed_planned_route": boolean, "fixed_work_breaks": [ { "shift_id": string, "work_duration_s": number } ], "forbidden_zones": [ string ], "imei": integer, "incompatible_load_types": [ "array" ], "max_middle_depots": integer, "max_runs": integer, "min_stop_weight": number, "penalty": { "arrival_after_start": { "as_soon_as_possible": boolean, "average_h": number }, "min_stop_weight": { "fixed": number, "kg": number } }, "phone": string, "planned_route": { "locations": [ { "anchor_mode": string, "delivered_orders": [ {} ], "delivery_in_current_run": boolean, "is_middle_depot": boolean, "loaded_orders": [ {} ], "picked_orders": [ {} ], "shift_id": string, "wait_if_early": boolean } ], "planned_runs_first": boolean, "start_time": string, "work_breaks": [ { "shift_id": string, "work_duration_s": number } ] }, "preset_id": string, "ref": string, "rest_schedule": {}, "rest_schedule_id": string, "return_to_depot": boolean, "routing_mode": string, "service_duration_multiplier": number, "shared_service_duration_multiplier": number, "shifts": [ { "balanced_group_id": string, "hard_max_duration_s": number, "hard_time_window": string, "hard_window": boolean, "id": string, "max_duration_s": number, "max_mileage_km": number, "max_runs": integer, "maximal_stops": integer, "minimal_stops": integer, "minimal_unique_stops": integer, "penalty": { "early": { "fixed": number, "minute": number }, "late": { "fixed": number, "minute": number }, "max_mileage": { "fixed": number, "km": number }, "out_of_time": { "fixed": number, "minute": number }, "stop_excess": { "fixed": number, "per_stop": number }, "stop_lack": { "fixed": number, "per_stop": number }, "unique_stop_lack": { "fixed": number, "per_stop": number } }, "preset_id": string, "service_duration_s": number, "time_window": string } ], "specs": { "height": number, "length": number, "max_weight": number, "max_weight_kg": number, "width": number }, "tags": [ string ], "trailer": { "capacity": { "custom": {}, "limits": { "units_perc": number, "volume_perc": number, "weight_perc": number }, "units": number, "volume": { "depth_m": number, "height_m": number, "width_m": number }, "weight_kg": number }, "cost": { "fixed": number, "hour": number, "km": number, "location": number, "run": number, "tonne_km": number }, "coupling_time_s": number, "decoupling_time_s": number, "max_capacity_difference": { "custom": {}, "units": number, "volume_cbm": number, "weight_kg": number }, "rolling_cost": number, "rolling_time": { "fixed_time_s": number, "s_per_kg": number, "s_per_m3": number, "s_per_unit": number } }, "travel_time_multiplier": number, "visit_depot_at_start": boolean, "visited_locations": [ { "anchor_mode": string, "delivered_orders": [ {} ], "is_middle_depot": boolean, "picked_orders": [ {} ], "shift_id": string, "time": string, "wait_if_early": boolean } ], "walking_courier": { "capacity": { "units": number }, "cost": { "hour": number, "km": number }, "restrictions": { "max_walking_edge_distance_m": { "penalty": number, "value": number } } } } ], "zones": [ { "geometry": { "coordinates": [ "array" ], "type": string }, "id": string } ] }
Copied to clipboard
Representation
Fields
depot | object A depot, by default start and finish point for a vehicle on route. |
depot. | string Address of the location. |
depot. | number The duration of the minimum time interval between the moment the order arrives at the cross-dock depot and the moment when it can be picked up from there by a vehicle for delivery. This interval is needed so that there is a reserve of time in case the vehicle that brings the orders is late. Minimum value: |
depot. | string Location description. |
depot. | number Duration of service at a depot in the end of a route. Finish service duration can include any operations at depot, e.g. unloading items, documents collection etc. More information Minimum value: |
depot. | boolean By default vehicle start time is equal to either depot, or garage, or shift start time. When this option is set to true, vehicles can start earlier or later than the default start time. In this case the optimal start time will be computed according to cost minimization. More information |
depot. | string Allowed hard time window to visit location, in |
depot. | boolean Restricts time window relaxation during route planning. When true, vehicles are allowed to return to depot only within the specified time window. More information |
depot. | object Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information |
depot. | object Restriction on packaging speed in depot. |
depot. | number Depot package throughput, kilograms per hour. Minimum value: |
depot. | number Depot package throughput, units per hour. Minimum value: |
depot. | object Penalties for depot time window or throughput failure. More information |
depot. | object Penalty components for early service (used instead of |
depot. | number Fixed penalty applied if a vehicle starts serving the depot before the start of the time window. The penalty is applied for any early service, including opening the depot, unloading or uploading the vehicle at the depot or closing the depot. It is applied once for each visit of a depot during which the depot was served early. Default value: |
depot. | number Penalty for each minute of early service of the depot. Applied in the same cases as the Default value: |
depot. | object Penalty components for late visits (used instead of |
depot. | number Fixed penalty applied for each visit of the depot after the end of the time window. Starting from a depot is counted for a visit. Default value: |
depot. | number Penalty for each minute of lateness for every visit of the depot after the end of the time window. Default value: |
depot. | object Penalty components for time window failure. Can be used to set the values of |
depot. | number Fixed penalty applied if the depot is visited outside of the time window. See the specifications of Default value: |
depot. | number Penalty for each minute of being outside of the time window of the depot. See the specifications of Default value: |
depot. | object Penalty components for package throughput exceeding. |
depot. | number Fixed penalty applied if throughput is exceeded. Default value: |
depot. | number Penalty for each extra kg of throughput exceeding. Default value: |
depot. | number Penalty for each extra custom unit of throughput exceeding ( Default value: |
depot. | object Penalty components for throughput exceeding. |
depot. | number Fixed penalty applied if throughput is exceeded. Default value: |
depot. | number Penalty for each extra kg of throughput exceeding. Default value: |
depot. | number Penalty for each extra custom unit of throughput exceeding ( Default value: |
depot. | number Penalty for each extra vehicle per hour of throughput exceeding. Default value: |
depot. | object WGS84 coordinate of a location. More information |
depot. | number Minimum value: |
depot. | number Minimum value: |
depot. | number Duration of preliminary service at depot. This duration can include any operations that can be done before loading the vehicle. These operations will be done before Minimum value: |
depot. | string Preset ID for depot properties. |
depot. | string Location reference. |
depot. | number Duration of service at location. Service duration can include any operations at location, such as loading or unloading items from a vehicle, or any other time associated with a location (apart from waiting, which is time after arrival and before service).More information Minimum value: |
depot. | object Depot throughput limit. More information |
depot. | number Depot throughput, kilograms per hour. Minimum value: |
depot. | number Depot throughput, custom units per hour. Minimum value: |
depot. | object |
depot. | string The time window during which the specified restriction applies. The windows must not intersect with each other, and their union must contain the defined working hours of the corresponding depot. If the restriction is not defined on any time interval outside depot working hours, then it is considered equal to zero. |
depot. | number Throughput, simultaneously vehicles. Minimum value: |
depot. | string Allowed time window to visit location, in |
depot. | array List of allowed time windows. Time windows can not overlap. Fields |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | object Time windows when the vehicle is allowed to leave the depot on the 1st run |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | array List of allowed time windows. Time windows can not overlap. Fields |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | object Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | array List of allowed time windows. Time windows can not overlap. Fields |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | object Time windows when the vehicle is allowed to return to the depot on the last run |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | array List of allowed time windows. Time windows can not overlap. Fields |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | string Location title. |
depot. | string Defines a type of depot:
Default value:
|
depots[] | array List of depots. Fields |
depots[]. | string Address of the location. |
depots[]. | number The duration of the minimum time interval between the moment the order arrives at the cross-dock depot and the moment when it can be picked up from there by a vehicle for delivery. This interval is needed so that there is a reserve of time in case the vehicle that brings the orders is late. Minimum value: |
depots[]. | string Location description. |
depots[]. | number Duration of service at a depot in the end of a route. Finish service duration can include any operations at depot, e.g. unloading items, documents collection etc. More information Minimum value: |
depots[]. | boolean By default vehicle start time is equal to either depot, or garage, or shift start time. When this option is set to true, vehicles can start earlier or later than the default start time. In this case the optimal start time will be computed according to cost minimization. More information |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | boolean Restricts time window relaxation during route planning. When true, vehicles are allowed to return to depot only within the specified time window. More information |
depots[]. | object Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information |
depots[]. | object Restriction on packaging speed in depot. |
depots[]. | number Depot package throughput, kilograms per hour. Minimum value: |
depots[]. | number Depot package throughput, units per hour. Minimum value: |
depots[]. | object Penalties for depot time window or throughput failure. More information |
depots[]. | object Penalty components for early service (used instead of |
depots[]. | number Fixed penalty applied if a vehicle starts serving the depot before the start of the time window. The penalty is applied for any early service, including opening the depot, unloading or uploading the vehicle at the depot or closing the depot. It is applied once for each visit of a depot during which the depot was served early. Default value: |
depots[]. | number Penalty for each minute of early service of the depot. Applied in the same cases as the Default value: |
depots[]. | object Penalty components for late visits (used instead of |
depots[]. | number Fixed penalty applied for each visit of the depot after the end of the time window. Starting from a depot is counted for a visit. Default value: |
depots[]. | number Penalty for each minute of lateness for every visit of the depot after the end of the time window. Default value: |
depots[]. | object Penalty components for time window failure. Can be used to set the values of |
depots[]. | number Fixed penalty applied if the depot is visited outside of the time window. See the specifications of Default value: |
depots[]. | number Penalty for each minute of being outside of the time window of the depot. See the specifications of Default value: |
depots[]. | object Penalty components for package throughput exceeding. |
depots[]. | number Fixed penalty applied if throughput is exceeded. Default value: |
depots[]. | number Penalty for each extra kg of throughput exceeding. Default value: |
depots[]. | number Penalty for each extra custom unit of throughput exceeding ( Default value: |
depots[]. | object Penalty components for throughput exceeding. |
depots[]. | number Fixed penalty applied if throughput is exceeded. Default value: |
depots[]. | number Penalty for each extra kg of throughput exceeding. Default value: |
depots[]. | number Penalty for each extra custom unit of throughput exceeding ( Default value: |
depots[]. | number Penalty for each extra vehicle per hour of throughput exceeding. Default value: |
depots[]. | object WGS84 coordinate of a location. More information |
depots[]. | number Minimum value: |
depots[]. | number Minimum value: |
depots[]. | number Duration of preliminary service at depot. This duration can include any operations that can be done before loading the vehicle. These operations will be done before Minimum value: |
depots[]. | string Preset ID for depot properties. |
depots[]. | string Location reference. |
depots[]. | number Duration of service at location. Service duration can include any operations at location, such as loading or unloading items from a vehicle, or any other time associated with a location (apart from waiting, which is time after arrival and before service).More information Minimum value: |
depots[]. | object Depot throughput limit. More information |
depots[]. | number Depot throughput, kilograms per hour. Minimum value: |
depots[]. | number Depot throughput, custom units per hour. Minimum value: |
depots[]. | object |
depots[]. | string The time window during which the specified restriction applies. The windows must not intersect with each other, and their union must contain the defined working hours of the corresponding depot. If the restriction is not defined on any time interval outside depot working hours, then it is considered equal to zero. |
depots[]. | number Throughput, simultaneously vehicles. Minimum value: |
depots[]. | string Allowed time window to visit location, in |
depots[]. | array List of allowed time windows. Time windows can not overlap. Fields |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | object Time windows when the vehicle is allowed to leave the depot on the 1st run |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | array List of allowed time windows. Time windows can not overlap. Fields |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | object Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | array List of allowed time windows. Time windows can not overlap. Fields |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | object Time windows when the vehicle is allowed to return to the depot on the last run |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | array List of allowed time windows. Time windows can not overlap. Fields |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | string Location title. |
depots[]. | string Defines a type of depot:
Default value:
|
locations[] * | array List of locations. |
locations[]. | string Address of the location. |
locations[]. | boolean When |
locations[]. | object Defines |
locations[]. | number Duration of service at a location, which can be shared among the other orders of the same client (by client_id) at exactly the same location. Minimum value: |
locations[]. | string Comments. |
locations[]. | string Defines whether it is allowed to deliver this order through a cross-dock depot.
Default value:
|
locations[]. | number Time spent at a crossdock location during the unloading of this order. More information Minimum value: |
locations[]. | number A custom numeric value, associated with location (E.g. the reward for the courier for visiting this location). May be used as a component in vehicle cost function. |
locations[]. | string Time by which the |
locations[]. | object Defines |
locations[]. | array A list of |
One Of: | |
locations[]. | number Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information Minimum value: |
locations[]. | string Time by which the order must be taken from the depot, in |
locations[]. | object |
locations[]. | string Time when the order is ready to be taken from any depot, in |
locations[]. | string Location description. |
locations[]. | string Allowed hard time window to visit location, in |
locations[]. | boolean Restricts time window relaxation during route planning. If location cannot be visited within a specified time window, it will be excluded from the route and added to |
locations[]. | object Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information |
locations[]. | boolean Orders with this field set to |
locations[]. | array Defines types of location load. |
locations[]. | integer Maximal number of vehicles that can be served by an anchor location. Unlimited by default. More information |
locations[]. | boolean May drop pickup order in crossdock location Default value: |
locations[]. | array List of tags which are not required for a vehicle to serve the location, but they can decrease or increase the route cost if satisfied. More information |
locations[]. | string An arbitrary tag. |
locations[]. | number Value of the tag. When location is served by a vehicle with a matching tag in |
locations[]. | number Duration of parking at location. If the order is delivered using Minimum value: |
locations[]. | object Penalties for non-completion and time window failure. More information |
locations[]. | object Penalty components for late deliveries from |
locations[]. | number Fixed penalty applied if the depot is visited after the deadline. Default value: |
locations[]. | number Penalty for each minute of lateness, when the depot is visited after the deadline. Default value: |
locations[]. | number Penalty for not delivering an order. More information Default value: |
locations[]. | object Penalty components for early service (used instead of |
locations[]. | number Fixed penalty applied if the location starts being served before the start of the time window. Default value: |
locations[]. | number Penalty for each minute of early arrival when the location starts being served before the start of the time window. Default value: |
locations[]. | object Penalty components for late visits (used instead of |
locations[]. | number Fixed penalty applied if the location is visited after the end of the time window. Default value: |
locations[]. | number Penalty for each minute of lateness, when the location is visited after the end of the time window. Default value: |
locations[]. | object Penalty components for time window failure. Can be used to set the values of |
locations[]. | number Fixed penalty applied if the location is visited outside of the time window. See the specifications of Default value: |
locations[]. | number Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of Default value: |
locations[]. | object Penalty components for exceeding transit time |
locations[]. | object Fixed penalty applied if the order was delivered with a violation of the soft transit time limit |
locations[]. | object Penalty for each minute transit time violation |
locations[]. | string Phone number of delivery receiver. |
locations[]. | boolean Delivery-orders that have this field set to |
locations[]. | object WGS84 coordinate of a location. More information |
locations[]. | number Minimum value: |
locations[]. | number Minimum value: |
locations[]. | string Preset ID for location properties. |
locations[]. | string Location reference. |
locations[]. | array List of tags a vehicle must have to arrive at the location. More information |
locations[]. | integer All locations in vehicle route with specified sequence_order option have to be visited in non-decreasing order of its values. More information |
locations[]. | number Duration of service at location. Service duration can include any operations at location, such as loading or unloading items from a vehicle, or any other time associated with a location (apart from waiting, which is time after arrival and before service).More information Minimum value: |
locations[]. | number Duration of service at a location, which can be shared among the other orders at exactly the same location. Shared service duration can include such operations as parking of a car, delivering documents, etc. More information Minimum value: |
locations[]. | array IDs of the companies that can access the order information. |
locations[]. | object Shipment size (dimensions and/or weight). More information |
locations[]. | object Size of shipment in custom units. Sizes in custom units are defined in format |
locations[]. | number Size of shipment in custom units. Minimum value: |
locations[]. | object Shipment dimensions and type. |
locations[]. | string Defines allowed container alignment for
Default value:
|
locations[]. | number Depth, meters. Minimum value: |
locations[]. | number Height, meters. Minimum value: |
locations[]. | string Container type:
Default value:
|
locations[]. | number Width, meters. Minimum value: |
locations[]. | number Explicit volume, cubic meters. By default, the value is taken from "volume", if nothing is specified here. Minimum value: |
locations[]. | number Weight of shipment, kilograms. Minimum value: |
locations[]. | string Allowed time window to visit location, in |
locations[]. | array List of allowed time windows. Time windows can not overlap. Fields |
locations[]. | string Allowed hard time window to visit location, in |
locations[]. | string Allowed time window to visit location, in |
locations[]. | string Location title. |
locations[]. | object Restrictions on the time the order spends inside a vehicle |
locations[]. | number Hard time limit, values above it are unacceptable Minimum value: |
locations[]. | number Soft time limit, values above it are acceptable but they will be penalized Minimum value: |
locations[]. | string Defines a type of service at the location:
Default value:
|
locations[]. | boolean When Default value: |
options * | object Solver options. It is forbidden to specify options that are not present in the list below. |
options. | boolean Use ISO 8601 format (YYYY-MM-DDTHH:MM:SS+HH:MM) for |
options. | boolean Do not use toll roads if possible (only for |
options. | array Each item in this array defines a balanced group of routes. Each route in a group corresponds to a single vehicle shift. Shifts are linked with groups by |
options. | string A unique ID of a balanced group of routes. |
options. | object Penalties for imbalanced routes. |
options. | number Penalty per hour of root-sum-square deviation of a route duration from an average duration of a balanced group of routes. Minimum value: |
options. | number Penalty per each missing or extra stop of root-sum-square deviation of a route stop count from an average number of stops in a balanced group of routes. Minimum value: |
options. | boolean Apply penalties defined in |
options. | number If a probability of being late on a location is greater or equal than a specified value, than the location is accounted in Minimum value: |
options. | string Starting date for all routes ( |
options. | boolean When true, solver will classify vehicles based on given vehicle specs to calculate more accurate distances between locations. Can be set to false to reduce size of the task and avoid "The task is too big" error. Default value: |
options. | boolean Fix shifts of locations from planned routes. |
options. | number Level of location proximity influence on vehicle routes. Recommended values are from Minimum value: |
options. | boolean Ignore |
options. | boolean Ignore all zone-related options in vehicles and locations. More information |
options. | array Each item in this array defines list of location load types, that should not be handled within the same vehicle run. More information |
options. | array Each item in this array defines list of location zones, that should not be visited within the same vehicle run. More information |
options. | boolean Start load orders in depot when they are ready (in order of |
options. | array Each item in this array defines a group of locations which should be assigned to the same vehicle shift. Some locations from the group might get dropped. Each location can be referenced by only one location group. More information |
options. | boolean When true, either all or none of the locations in group will be served. |
options. | array |
One Of: | |
options. | boolean When true, all assigned locations in group will be served consecutively, but their order is not fixed. |
options. | string |
options. | string Matrix router to be used for route planning
Default value:
|
options. | number Maximal relation of drop penalty to the sum of drop penalties in all orders. More information Minimum value: |
options. | boolean If possible merge those orders which have the same coordinates, i.e. serve them by a single vehicle. More information |
options. | boolean Compute and minimize the probability of being late to locations. In other words, avoid routes such that the estimated time of arrival is close to the end of a time window. More information |
options. | boolean This option determines whether to penalize for late arrivals or late service.
|
options. | object Penalties for global solution limitations violation. |
options. | object Penalty components for |
options. | number Fixed penalty applied if drop penalty ratio is too high. Default value: |
options. | number Penalty for each exceeding percent of drop penalty percentage. Default value: |
options. | object Penalty components for extra visits to multiorder poins. |
options. | number Penalty for every point where vehicles/couriers arrive more than once. Minimum value: |
options. | number Penalty for every extra vehicle/courier that arrives at multi-order points. Minimum value: |
options. | number Penalty for each extra visit to multi-order points. Minimum value: |
options. | array Each item in this array defines point throughput. |
options. | object |
options. | object Penalty components for throughput exceeding. |
options. | number Fixed penalty applied if throughput is exceeded. Default value: |
options. | number Penalty for each extra kg of throughput exceeding. Default value: |
options. | number Penalty for each extra custom unit of throughput exceeding ( Default value: |
options. | number Penalty for each extra vehicle per hour of throughput exceeding. Default value: |
options. | object WGS84 coordinate of a location. More information |
options. | number Minimum value: |
options. | number Minimum value: |
options. | object Point throughput limit. |
options. | number Point throughput, kilograms per hour. Minimum value: |
options. | number Point throughput, custom units per hour. Minimum value: |
options. | object |
options. | string The time window during which the specified restriction applies. The windows must not intersect with each other, and their union must contain the defined working hours of the corresponding depot. If the restriction is not defined on any time interval outside depot working hours, then it is considered equal to zero. |
options. | number Throughput, simultaneously vehicles. Minimum value: |
options. | boolean Use post optimization: restart algorithm in the last 10% operations with disabled global proximity and balancing. More information |
options. | string Preset ID for task options. |
options. | number Level of location proximity influence on vehicle routes. Recommended values are from Minimum value: |
options. | string Solution quality:
Default value:
|
options. | boolean Restart to optimize only non-dropped orders, in case we haven't find solutions without drops. Enable this option if drops are expected and acceptable for your business scenario. |
options. | string Transportation method. More information
Default value:
|
options. | array List of rest schedule templates. More information |
options. | object |
options. | boolean When true, work break will be put after the last location. If possible it will be merged with the first work break of type listed in |
options. | boolean When true, work break will be put before the first location. If possible it will be merged with the last work break of type listed in |
options. | string Minimal and maximal duration of continuous travel time before rest, format: |
options. | array Types of work breaks this work break can be merged with. This field can only be used with |
options. | number Minimal duration of route needed to make work break necessary, seconds. Minimum value: |
options. | object Penalties applied for violations of work break conditions. |
options. | object Penalty components for early work break. |
options. | number Fixed penalty applied if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
options. | number Penalty for each minute of an early start of work break if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
options. | object Penalty components for late work break. |
options. | number Fixed penalty applied if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
options. | number Penalty for each minute of a late start of work break if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
options. | boolean When true, this work break will be repeated until the end of route. Can only be true for the last break in the chain. |
options. | number Duration of rest, seconds. Minimum value: |
options. | number Minimal duration of route needed to use work break, seconds. Minimum value: |
options. | string Minimal and maximal duration of travel before rest, format: |
options. | string Type of work break. Used in |
options. | string Minimal and maximal duration of time from start of route until rest, format: |
options. | string Minimal and maximal duration of work before rest, format: |
options. | boolean When true, work break will be put after the last location. If possible it will be merged with the first work break of type listed in |
options. | boolean When true, work break will be put before the first location. If possible it will be merged with the last work break of type listed in |
options. | string Minimal and maximal duration of continuous travel time before rest, format: |
options. | array Types of work breaks this work break can be merged with. This field can only be used with |
options. | number Minimal duration of route needed to make work break necessary, seconds. Minimum value: |
options. | object Penalties applied for violations of work break conditions. |
options. | object Penalty components for early work break. |
options. | number Fixed penalty applied if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
options. | number Penalty for each minute of an early start of work break if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
options. | object Penalty components for late work break. |
options. | number Fixed penalty applied if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
options. | number Penalty for each minute of a late start of work break if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
options. | boolean When true, this work break will be repeated until the end of route. Can only be true for the last break in the chain. |
options. | number Duration of rest, seconds. Minimum value: |
options. | number Minimal duration of route needed to use work break, seconds. Minimum value: |
options. | string Minimal and maximal duration of travel before rest, format: |
options. | string Type of work break. Used in |
options. | string Minimal and maximal duration of time from start of route until rest, format: |
options. | string Minimal and maximal duration of work before rest, format: |
options. | string A unique ID of a template. |
options. | object |
options. | boolean Allows to wait in multiorders. More information Default value: |
options. | boolean Compute drop penalty according to shipment weight and volume. It helps optimization when vehicles are highly loaded. Specified location drop penalties are ignored in this case. More information |
vehicles[] * | array List of vehicles, available for route planning. |
vehicles[]. | boolean Vehicle is allowed to visit depots with different ids in the same route |
vehicles[]. | array List of zones, which can be visited by vehicle. More information |
vehicles[]. | object Vehicle capacity. More information |
vehicles[]. | object Amount of custom units a vehicle is able to carry. Capacities in custom units are defined in format |
vehicles[]. | object Vehicle load limits. |
vehicles[]. | number Upper limit of total shipments size in custom units as a percentage of a vehicle capacity Minimum value: |
vehicles[]. | number Upper limit of total shipments volume as a percentage of vehicle load bay volume. For container fitting purposes it is assumed that each dimension is multiplied by the cubic root of Minimum value: |
vehicles[]. | number Upper limit of total shipments weight as a percentage of total weight the vehicle is allowed to carry. Minimum value: |
vehicles[]. | number Amount of custom units a vehicle is able to carry. Minimum value: |
vehicles[]. | object Vehicle dimensions. |
vehicles[]. | number Depth, meters. Minimum value: |
vehicles[]. | number Height, meters. Minimum value: |
vehicles[]. | number Width, meters. Minimum value: |
vehicles[]. | number Weight a vehicle is able to carry, kilograms. Minimum value: |
vehicles[]. | array |
vehicles[]. | object |
vehicles[]. | number Penalty per km exceeding the maximum distance between servicing close locations. Minimum value: |
vehicles[]. | number The maximum distance traveled between servicing two close locations. Minimum value: |
vehicles[]. | object |
vehicles[]. | number Penalty per second exceeding the maximum time between servicing close locations. Minimum value: |
vehicles[]. | number The maximum time between servicing two close locations. Minimum value: |
vehicles[]. | string Transportation method is used to determine close locations. This parameter can be used only if the
|
vehicles[]. | number Maximum distance between two locations in meters at which locations on which the restriction is applied. Minimum value: |
vehicles[]. | number If value is greater than the corresponding value of the Minimum value: |
vehicles[]. | object |
vehicles[]. | number Cost per fact of vehicle use (cost occurred if vehicle is included in route). Minimum value: |
vehicles[]. | number Cost of using vehicle per hour. It should not be zero or very small, otherwise you may get routes which are not optimal in terms of time. Minimum value: |
vehicles[]. | number Cost of using vehicle per kilometer. It should not be zero or very small, otherwise you may get routes which are not optimal in terms of distance. Minimum value: |
vehicles[]. | number Cost of using vehicle per location (default 0). Minimum value: |
vehicles[]. | number Cost per single vehicle run from depot to locations. Minimum value: |
vehicles[]. | number Cost of carrying one tonne for one kilometer (default 0). Minimum value: |
vehicles[]. | string Defines whether this machine is allowed to deliver orders to the cross-dock depot. More information
Default value:
|
vehicles[]. | number Additional time required to load this vehicle in the depot. Minimum value: |
vehicles[]. | object |
vehicles[]. | object |
vehicles[]. | array List of excluding vehicle tags, checked for compatibility with location tags (POSIX-extended regular expression are used). More information |
vehicles[]. | object Defines |
vehicles[]. | boolean If |
vehicles[]. | array This list can be used for setting the duration of work before each break for several first breaks in each shift (or the whole route, if no shifts are present). If the list of shifts (see |
vehicles[]. | string Unique identifier of a shift. |
vehicles[]. | number Duration of continuous work before the break, seconds. Minimum value: |
vehicles[]. | array List of zones, which can not be visited by vehicle. More information |
vehicles[]. | object Defines |
vehicles[]. | object Vehicle ID. All vehicle IDs in task must be unique and have the same type: integer or string. More information |
vehicles[]. | integer The number of the GPS tracker. |
vehicles[]. | array Each item in this array defines list of location load types, that should not be handled within the same vehicle run (overrides |
vehicles[]. | integer Maximal number of middle depots (i.e. depots which do not break the run) in the route Default value: |
vehicles[]. | integer Maximal number of the vehicle runs from the depot to locations in all shifts. More information Default value: |
vehicles[]. | object |
vehicles[]. | number Minimal total weight of all orders in one point. More information |
vehicles[]. | object Penalties for vehicle limitations violation. |
vehicles[]. | object Penalty components for arrived after start of timewindow |
vehicles[]. | boolean Option for arrive as soon as possible even it includes added wait in route |
vehicles[]. | number Penalty for average arrived after start of timewindow |
vehicles[]. | object Penalty components for insufficient total orders weight in point. |
vehicles[]. | number Fixed penalty applied if total orders weight is too low. Default value: |
vehicles[]. | number Penalty for each lacking kg of total orders weight. Default value: |
vehicles[]. | string Phone number of the courier. |
vehicles[]. | object A planned vehicle route, should be used to assign already chosen locations to vehicles. These locations will not be dropped even if some strict constraint(s) is violated and will be served by the vehicle. The order of locations provided in this option can be changed for optimization of final route. By default shifts assigned to planned locations can be changed as well. They can be fixed with |
vehicles[]. | array A planned order of locations in a vehicle route including all shifts and multiple runs. If the list of shifts (see |
vehicles[]. | string Default value:
|
vehicles[]. | array List of IDs of orders delivered to the crossdock for delivery to the destination. |
One Of: | |
vehicles[]. | boolean All orders, loaded in this location, have to be delivered in current run. |
vehicles[]. | object Reference to a location specified in |
vehicles[]. | boolean Location is a middle depot. |
vehicles[]. | array Ids of |
One Of: | |
vehicles[]. | array A list of IDs of pickup orders picked up in the crossdock. |
One Of: | |
vehicles[]. | string Unique identifier of a shift. |
vehicles[]. | boolean This option determines what happens if a vehicle arrives to the planned location early. When Default value: |
vehicles[]. | boolean It is necessary to visit all depots, listed in |
vehicles[]. | string Route start time, in |
vehicles[]. | array Planned work breaks for a vehicle route including all shifts and multiple runs. If the list of shifts (see |
vehicles[]. | string Unique identifier of a shift. |
vehicles[]. | number Duration of continuous work before the break, seconds. Minimum value: |
vehicles[]. | string Preset ID for vehicle properties. |
vehicles[]. | string Vehicle reference number. |
vehicles[]. | object Schedule of rest breaks. More information |
vehicles[]. | object |
vehicles[]. | boolean When true, work break will be put after the last location. If possible it will be merged with the first work break of type listed in |
vehicles[]. | boolean When true, work break will be put before the first location. If possible it will be merged with the last work break of type listed in |
vehicles[]. | string Minimal and maximal duration of continuous travel time before rest, format: |
vehicles[]. | array Types of work breaks this work break can be merged with. This field can only be used with |
vehicles[]. | number Minimal duration of route needed to make work break necessary, seconds. Minimum value: |
vehicles[]. | object Penalties applied for violations of work break conditions. |
vehicles[]. | object Penalty components for early work break. |
vehicles[]. | number Fixed penalty applied if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | number Penalty for each minute of an early start of work break if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | object Penalty components for late work break. |
vehicles[]. | number Fixed penalty applied if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | number Penalty for each minute of a late start of work break if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | boolean When true, this work break will be repeated until the end of route. Can only be true for the last break in the chain. |
vehicles[]. | number Duration of rest, seconds. Minimum value: |
vehicles[]. | number Minimal duration of route needed to use work break, seconds. Minimum value: |
vehicles[]. | string Minimal and maximal duration of travel before rest, format: |
vehicles[]. | string Type of work break. Used in |
vehicles[]. | string Minimal and maximal duration of time from start of route until rest, format: |
vehicles[]. | string Minimal and maximal duration of work before rest, format: |
vehicles[]. | boolean When true, work break will be put after the last location. If possible it will be merged with the first work break of type listed in |
vehicles[]. | boolean When true, work break will be put before the first location. If possible it will be merged with the last work break of type listed in |
vehicles[]. | string Minimal and maximal duration of continuous travel time before rest, format: |
vehicles[]. | array Types of work breaks this work break can be merged with. This field can only be used with |
vehicles[]. | number Minimal duration of route needed to make work break necessary, seconds. Minimum value: |
vehicles[]. | object Penalties applied for violations of work break conditions. |
vehicles[]. | object Penalty components for early work break. |
vehicles[]. | number Fixed penalty applied if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | number Penalty for each minute of an early start of work break if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | object Penalty components for late work break. |
vehicles[]. | number Fixed penalty applied if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | number Penalty for each minute of a late start of work break if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | boolean When true, this work break will be repeated until the end of route. Can only be true for the last break in the chain. |
vehicles[]. | number Duration of rest, seconds. Minimum value: |
vehicles[]. | number Minimal duration of route needed to use work break, seconds. Minimum value: |
vehicles[]. | string Minimal and maximal duration of travel before rest, format: |
vehicles[]. | string Type of work break. Used in |
vehicles[]. | string Minimal and maximal duration of time from start of route until rest, format: |
vehicles[]. | string Minimal and maximal duration of work before rest, format: |
vehicles[]. | string ID of a rest schedule template used in this vehicle. |
vehicles[]. | boolean If true, the vehicle returns to its Default value: |
vehicles[]. | string Transportation method. If present, overrides
|
vehicles[]. | number Service duration adjustment coefficient for slow or fast workers. More information Minimum value: |
vehicles[]. | number Shared service duration adjustment coefficient for slow or fast workers. More information Minimum value: |
vehicles[]. | array List of vehicle shifts. More information |
vehicles[]. | string ID of a corresponding balanced group of routes (see the option |
vehicles[]. | number Hard limit on the maximum shift duration in seconds. If both Minimum value: |
vehicles[]. | string Allowed hard time window to visit location, in |
vehicles[]. | boolean Restricts time window relaxation during route planning. When true, vehicles are allowed to finish a shift only within the specified time window. More information |
vehicles[]. | string Unique identifier of a shift. |
vehicles[]. | number Maximal duration of a shift in seconds. If a planned shift duration is greater than specified, the shift out of time penalties are applied. Minimum value: |
vehicles[]. | number Maximal mileage of the vehicle during the shift in kilometers. If a planned mileage is greater than this value, the penalties from a shift parameter Minimum value: |
vehicles[]. | integer Maximal number of the vehicle runs from the depot to locations in shift. Default value: |
vehicles[]. | integer Maximal number of shift stops, if the final stop count is greater than this value, Minimum value: |
vehicles[]. | integer Minimal number of shift stops, if the final stop count is less than this value, Minimum value: |
vehicles[]. | integer Minimal number of shift stops with unique coordinates, if the final stop count is less than this value, Minimum value: |
vehicles[]. | object Penalties for shift constraints violation. |
vehicles[]. | object Penalty components for shifts started too early (used instead of |
vehicles[]. | number Fixed penalty applied if the vehicle starts or finishes the shift before the start of the time window. Default value: |
vehicles[]. | number Penalty for each minute of earliness if the vehicle starts or finishes the shift before the start of the time window. Default value: |
vehicles[]. | object Penalty components for shifts finished too late (used instead of |
vehicles[]. | number Fixed penalty applied if the vehicle starts or finishes the shift after the end of the time window or shift duration exceeds the Default value: |
vehicles[]. | number Penalty for each minute of lateness if the vehicle starts or finishes the shift after the end of the time window or if the vehicle spends more than Default value: |
vehicles[]. | object Penalties applied for violating shift's |
vehicles[]. | number Fixed penalty applied if a vehicle shift has mileage greater than Minimum value: |
vehicles[]. | number Penalty applied per each extra kilometer when shift mileage is greater than Minimum value: |
vehicles[]. | object Penalty components for time window failure. Can be used to set the values of |
vehicles[]. | number Fixed penalty applied if the vehicle starts or finishes the shift outside of the time window. See the specifications of Default value: |
vehicles[]. | number Penalty for each minute of being outside of the time window of the shift. See the specifications of Default value: |
vehicles[]. | object Penalties applied for violating shift's |
vehicles[]. | number Fixed penalty applied if a vehicle shift has greater than Minimum value: |
vehicles[]. | number Penalty applied per each extra stop when shift stop count is greater than Minimum value: |
vehicles[]. | object Penalties applied for violating shift's |
vehicles[]. | number Fixed penalty applied if a vehicle shift has less than Minimum value: |
vehicles[]. | number Penalty applied per each missing stop when shift stop count is less than Minimum value: |
vehicles[]. | object Penalties applied for violating shift's |
vehicles[]. | number Fixed penalty applied if a vehicle shift has less than Minimum value: |
vehicles[]. | number Penalty applied per each missing stop when shift stop count is less than Minimum value: |
vehicles[]. | string Preset ID for vehicle shift properties. |
vehicles[]. | number Duration of service in between shifts (in seconds). It can include any operations needed to finish the shift, such as time to change a driver, exchange papers etc (default: 0). Minimum value: |
vehicles[]. | string Allowed time window to visit location, in |
vehicles[]. | object Vehicle specification. More information |
vehicles[]. | number Height of the vehicle, meters. Minimum value: |
vehicles[]. | number Length of the vehicle, meters. Minimum value: |
vehicles[]. | number Maximum weight of the vehicle, tons. Minimum value: |
vehicles[]. | number Maximum weight of the vehicle, kilograms. When solving the problem, the characteristic will be rounded up to tons.If both characteristics are set Minimum value: |
vehicles[]. | number Width of the vehicle, meters. Minimum value: |
vehicles[]. | object Defines |
vehicles[]. | object |
vehicles[]. | array List of vehicle tags, checked for compatibility with location tags (POSIX-extended regular expression are used). More information |
vehicles[]. | object Trailer specification. More information |
vehicles[]. | object Trailer capacity. |
vehicles[]. | object Amount of custom units a trailer is able to carry. Capacities in custom units are defined in format |
vehicles[]. | object Trailer load limits. |
vehicles[]. | number Upper limit of total shipments size in custom units as a percentage of a trailer capacity Minimum value: |
vehicles[]. | number Upper limit of total shipments volume as a percentage of trailer volume. For container fitting purposes it is assumed that each dimension is multiplied by the cubic root of Minimum value: |
vehicles[]. | number Upper limit of total shipments weight as a percentage of total weight the trailer is allowed to carry. Minimum value: |
vehicles[]. | number Amount of custom units a trailer is able to carry. Minimum value: |
vehicles[]. | object Trailer dimensions. |
vehicles[]. | number Depth, meters. Minimum value: |
vehicles[]. | number Height, meters. Minimum value: |
vehicles[]. | number Width, meters. Minimum value: |
vehicles[]. | number Weight a trailer is able to carry, kilograms. Minimum value: |
vehicles[]. | object Trailer cost. |
vehicles[]. | number Cost per fact of trailer use (cost occurred if trailer is used in route). Minimum value: |
vehicles[]. | number Cost of using trailer per hour. Minimum value: |
vehicles[]. | number Cost of using trailer per kilometer. Minimum value: |
vehicles[]. | number Cost of using trailer per location (default 0). Minimum value: |
vehicles[]. | number Cost per single vehicle run from depot to locations. Minimum value: |
vehicles[]. | number Cost of carrying one tonne for one kilometer (default 0). Minimum value: |
vehicles[]. | number Extra time to couple the trailer, seconds. Minimum value: |
vehicles[]. | number Extra time to decouple the trailer, seconds. Minimum value: |
vehicles[]. | object The maximum difference between the loading of the trailer and the head. |
vehicles[]. | object A maximum allowable difference in the loaded amount of custom units between the trailer and the head. The difference in custom units are defined in format |
vehicles[]. | number The maximum allowable difference in the loaded amount of custom units between the trailer and the head. |
vehicles[]. | number The maximum allowable difference in the loaded volume between the trailer and the head, cubic meters. |
vehicles[]. | number The maximum allowable difference in the loaded weight between the trailer and the head, kilograms. |
vehicles[]. | number Penalty for each rolling of goods from the trailer to the head. Minimum value: |
vehicles[]. | object Time for loading shipments from trailer to head. In case multiple types of time are specified, the one that takes the most time is chosen. In case none of them is specified, only fixed loading time is used. |
vehicles[]. | number Fixed time spent each time a trailer is loaded or unloaded, seconds. Minimum value: |
vehicles[]. | number Loading time per kg, seconds. Minimum value: |
vehicles[]. | number Loading time per cubic meter, seconds. Minimum value: |
vehicles[]. | number Loading time per unit, seconds. Minimum value: |
vehicles[]. | number Travel duration adjustment coefficient for slow or fast vehicles. More information Minimum value: |
vehicles[]. | boolean If true, the first route of the vehicle will go through the
Default value: |
vehicles[]. | array List of locations to be visited by a vehicle in exact order as fixed part of the route without optimizations, with optional times of departure from some locations. If the work breaks between visited locations need to be precisely scheduled, use |
vehicles[]. | string Default value:
|
vehicles[]. | array List of IDs of orders delivered to the crossdock for delivery to the destination. |
One Of: | |
vehicles[]. | object Reference to a location specified in |
vehicles[]. | boolean Location is a middle depot. |
vehicles[]. | array A list of IDs of pickup orders picked up in the crossdock. |
One Of: | |
vehicles[]. | string Unique identifier of a shift. |
vehicles[]. | string Time of departure from a location, in |
vehicles[]. | boolean This option determines what happens if a vehicle arrives to the planned location early. When Default value: |
vehicles[]. | object Description of a pedestrian courier. |
vehicles[]. | object Capacity of a courier |
vehicles[]. | number Amount of custom units a courier is able to carry. Minimum value: |
vehicles[]. | object Courier work cost. |
vehicles[]. | number Cost per hour of courier walking routes. Minimum value: |
vehicles[]. | number Cost per kilometer walked by courier. Minimum value: |
vehicles[]. | object |
vehicles[]. | object |
vehicles[]. | number Penalty for exceeding the walking edge limit per meter. Minimum value: |
vehicles[]. | number Max walking distance between two locations in route, meters. Minimum value: |
zones[] | array |
zones[]. | object |
zones[]. | array |
zones[]. | string Always equals |
zones[]. | string Zone id |
depot | object A depot, by default start and finish point for a vehicle on route. |
depot. | string Address of the location. |
depot. | number The duration of the minimum time interval between the moment the order arrives at the cross-dock depot and the moment when it can be picked up from there by a vehicle for delivery. This interval is needed so that there is a reserve of time in case the vehicle that brings the orders is late. Minimum value: |
depot. | string Location description. |
depot. | number Duration of service at a depot in the end of a route. Finish service duration can include any operations at depot, e.g. unloading items, documents collection etc. More information Minimum value: |
depot. | boolean By default vehicle start time is equal to either depot, or garage, or shift start time. When this option is set to true, vehicles can start earlier or later than the default start time. In this case the optimal start time will be computed according to cost minimization. More information |
depot. | string Allowed hard time window to visit location, in |
depot. | boolean Restricts time window relaxation during route planning. When true, vehicles are allowed to return to depot only within the specified time window. More information |
depot. | object Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information |
depot. | object Restriction on packaging speed in depot. |
depot. | number Depot package throughput, kilograms per hour. Minimum value: |
depot. | number Depot package throughput, units per hour. Minimum value: |
depot. | object Penalties for depot time window or throughput failure. More information |
depot. | object Penalty components for early service (used instead of |
depot. | number Fixed penalty applied if a vehicle starts serving the depot before the start of the time window. The penalty is applied for any early service, including opening the depot, unloading or uploading the vehicle at the depot or closing the depot. It is applied once for each visit of a depot during which the depot was served early. Default value: |
depot. | number Penalty for each minute of early service of the depot. Applied in the same cases as the Default value: |
depot. | object Penalty components for late visits (used instead of |
depot. | number Fixed penalty applied for each visit of the depot after the end of the time window. Starting from a depot is counted for a visit. Default value: |
depot. | number Penalty for each minute of lateness for every visit of the depot after the end of the time window. Default value: |
depot. | object Penalty components for time window failure. Can be used to set the values of |
depot. | number Fixed penalty applied if the depot is visited outside of the time window. See the specifications of Default value: |
depot. | number Penalty for each minute of being outside of the time window of the depot. See the specifications of Default value: |
depot. | object Penalty components for package throughput exceeding. |
depot. | number Fixed penalty applied if throughput is exceeded. Default value: |
depot. | number Penalty for each extra kg of throughput exceeding. Default value: |
depot. | number Penalty for each extra custom unit of throughput exceeding ( Default value: |
depot. | object Penalty components for throughput exceeding. |
depot. | number Fixed penalty applied if throughput is exceeded. Default value: |
depot. | number Penalty for each extra kg of throughput exceeding. Default value: |
depot. | number Penalty for each extra custom unit of throughput exceeding ( Default value: |
depot. | number Penalty for each extra vehicle per hour of throughput exceeding. Default value: |
depot. | object WGS84 coordinate of a location. More information |
depot. | number Minimum value: |
depot. | number Minimum value: |
depot. | number Duration of preliminary service at depot. This duration can include any operations that can be done before loading the vehicle. These operations will be done before Minimum value: |
depot. | string Preset ID for depot properties. |
depot. | string Location reference. |
depot. | number Duration of service at location. Service duration can include any operations at location, such as loading or unloading items from a vehicle, or any other time associated with a location (apart from waiting, which is time after arrival and before service).More information Minimum value: |
depot. | object Depot throughput limit. More information |
depot. | number Depot throughput, kilograms per hour. Minimum value: |
depot. | number Depot throughput, custom units per hour. Minimum value: |
depot. | object |
depot. | string The time window during which the specified restriction applies. The windows must not intersect with each other, and their union must contain the defined working hours of the corresponding depot. If the restriction is not defined on any time interval outside depot working hours, then it is considered equal to zero. |
depot. | number Throughput, simultaneously vehicles. Minimum value: |
depot. | string Allowed time window to visit location, in |
depot. | array List of allowed time windows. Time windows can not overlap. Fields |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | object Time windows when the vehicle is allowed to leave the depot on the 1st run |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | array List of allowed time windows. Time windows can not overlap. Fields |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | object Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | array List of allowed time windows. Time windows can not overlap. Fields |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | object Time windows when the vehicle is allowed to return to the depot on the last run |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | array List of allowed time windows. Time windows can not overlap. Fields |
depot. | string Allowed hard time window to visit location, in |
depot. | string Allowed time window to visit location, in |
depot. | string Location title. |
depot. | string Defines a type of depot:
Default value:
|
depots[] | array List of depots. Fields |
depots[]. | string Address of the location. |
depots[]. | number The duration of the minimum time interval between the moment the order arrives at the cross-dock depot and the moment when it can be picked up from there by a vehicle for delivery. This interval is needed so that there is a reserve of time in case the vehicle that brings the orders is late. Minimum value: |
depots[]. | string Location description. |
depots[]. | number Duration of service at a depot in the end of a route. Finish service duration can include any operations at depot, e.g. unloading items, documents collection etc. More information Minimum value: |
depots[]. | boolean By default vehicle start time is equal to either depot, or garage, or shift start time. When this option is set to true, vehicles can start earlier or later than the default start time. In this case the optimal start time will be computed according to cost minimization. More information |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | boolean Restricts time window relaxation during route planning. When true, vehicles are allowed to return to depot only within the specified time window. More information |
depots[]. | object Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information |
depots[]. | object Restriction on packaging speed in depot. |
depots[]. | number Depot package throughput, kilograms per hour. Minimum value: |
depots[]. | number Depot package throughput, units per hour. Minimum value: |
depots[]. | object Penalties for depot time window or throughput failure. More information |
depots[]. | object Penalty components for early service (used instead of |
depots[]. | number Fixed penalty applied if a vehicle starts serving the depot before the start of the time window. The penalty is applied for any early service, including opening the depot, unloading or uploading the vehicle at the depot or closing the depot. It is applied once for each visit of a depot during which the depot was served early. Default value: |
depots[]. | number Penalty for each minute of early service of the depot. Applied in the same cases as the Default value: |
depots[]. | object Penalty components for late visits (used instead of |
depots[]. | number Fixed penalty applied for each visit of the depot after the end of the time window. Starting from a depot is counted for a visit. Default value: |
depots[]. | number Penalty for each minute of lateness for every visit of the depot after the end of the time window. Default value: |
depots[]. | object Penalty components for time window failure. Can be used to set the values of |
depots[]. | number Fixed penalty applied if the depot is visited outside of the time window. See the specifications of Default value: |
depots[]. | number Penalty for each minute of being outside of the time window of the depot. See the specifications of Default value: |
depots[]. | object Penalty components for package throughput exceeding. |
depots[]. | number Fixed penalty applied if throughput is exceeded. Default value: |
depots[]. | number Penalty for each extra kg of throughput exceeding. Default value: |
depots[]. | number Penalty for each extra custom unit of throughput exceeding ( Default value: |
depots[]. | object Penalty components for throughput exceeding. |
depots[]. | number Fixed penalty applied if throughput is exceeded. Default value: |
depots[]. | number Penalty for each extra kg of throughput exceeding. Default value: |
depots[]. | number Penalty for each extra custom unit of throughput exceeding ( Default value: |
depots[]. | number Penalty for each extra vehicle per hour of throughput exceeding. Default value: |
depots[]. | object WGS84 coordinate of a location. More information |
depots[]. | number Minimum value: |
depots[]. | number Minimum value: |
depots[]. | number Duration of preliminary service at depot. This duration can include any operations that can be done before loading the vehicle. These operations will be done before Minimum value: |
depots[]. | string Preset ID for depot properties. |
depots[]. | string Location reference. |
depots[]. | number Duration of service at location. Service duration can include any operations at location, such as loading or unloading items from a vehicle, or any other time associated with a location (apart from waiting, which is time after arrival and before service).More information Minimum value: |
depots[]. | object Depot throughput limit. More information |
depots[]. | number Depot throughput, kilograms per hour. Minimum value: |
depots[]. | number Depot throughput, custom units per hour. Minimum value: |
depots[]. | object |
depots[]. | string The time window during which the specified restriction applies. The windows must not intersect with each other, and their union must contain the defined working hours of the corresponding depot. If the restriction is not defined on any time interval outside depot working hours, then it is considered equal to zero. |
depots[]. | number Throughput, simultaneously vehicles. Minimum value: |
depots[]. | string Allowed time window to visit location, in |
depots[]. | array List of allowed time windows. Time windows can not overlap. Fields |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | object Time windows when the vehicle is allowed to leave the depot on the 1st run |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | array List of allowed time windows. Time windows can not overlap. Fields |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | object Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | array List of allowed time windows. Time windows can not overlap. Fields |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | object Time windows when the vehicle is allowed to return to the depot on the last run |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | array List of allowed time windows. Time windows can not overlap. Fields |
depots[]. | string Allowed hard time window to visit location, in |
depots[]. | string Allowed time window to visit location, in |
depots[]. | string Location title. |
depots[]. | string Defines a type of depot:
Default value:
|
locations[] * | array List of locations. |
locations[]. | string Address of the location. |
locations[]. | boolean When |
locations[]. | object Defines |
locations[]. | number Duration of service at a location, which can be shared among the other orders of the same client (by client_id) at exactly the same location. Minimum value: |
locations[]. | string Comments. |
locations[]. | string Defines whether it is allowed to deliver this order through a cross-dock depot.
Default value:
|
locations[]. | number Time spent at a crossdock location during the unloading of this order. More information Minimum value: |
locations[]. | number A custom numeric value, associated with location (E.g. the reward for the courier for visiting this location). May be used as a component in vehicle cost function. |
locations[]. | string Time by which the |
locations[]. | object Defines |
locations[]. | array A list of |
One Of: | |
locations[]. | number Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information Minimum value: |
locations[]. | string Time by which the order must be taken from the depot, in |
locations[]. | object |
locations[]. | string Time when the order is ready to be taken from any depot, in |
locations[]. | string Location description. |
locations[]. | string Allowed hard time window to visit location, in |
locations[]. | boolean Restricts time window relaxation during route planning. If location cannot be visited within a specified time window, it will be excluded from the route and added to |
locations[]. | object Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information |
locations[]. | boolean Orders with this field set to |
locations[]. | array Defines types of location load. |
locations[]. | integer Maximal number of vehicles that can be served by an anchor location. Unlimited by default. More information |
locations[]. | boolean May drop pickup order in crossdock location Default value: |
locations[]. | array List of tags which are not required for a vehicle to serve the location, but they can decrease or increase the route cost if satisfied. More information |
locations[]. | string An arbitrary tag. |
locations[]. | number Value of the tag. When location is served by a vehicle with a matching tag in |
locations[]. | number Duration of parking at location. If the order is delivered using Minimum value: |
locations[]. | object Penalties for non-completion and time window failure. More information |
locations[]. | object Penalty components for late deliveries from |
locations[]. | number Fixed penalty applied if the depot is visited after the deadline. Default value: |
locations[]. | number Penalty for each minute of lateness, when the depot is visited after the deadline. Default value: |
locations[]. | number Penalty for not delivering an order. More information Default value: |
locations[]. | object Penalty components for early service (used instead of |
locations[]. | number Fixed penalty applied if the location starts being served before the start of the time window. Default value: |
locations[]. | number Penalty for each minute of early arrival when the location starts being served before the start of the time window. Default value: |
locations[]. | object Penalty components for late visits (used instead of |
locations[]. | number Fixed penalty applied if the location is visited after the end of the time window. Default value: |
locations[]. | number Penalty for each minute of lateness, when the location is visited after the end of the time window. Default value: |
locations[]. | object Penalty components for time window failure. Can be used to set the values of |
locations[]. | number Fixed penalty applied if the location is visited outside of the time window. See the specifications of Default value: |
locations[]. | number Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of Default value: |
locations[]. | object Penalty components for exceeding transit time |
locations[]. | object Fixed penalty applied if the order was delivered with a violation of the soft transit time limit |
locations[]. | object Penalty for each minute transit time violation |
locations[]. | string Phone number of delivery receiver. |
locations[]. | boolean Delivery-orders that have this field set to |
locations[]. | object WGS84 coordinate of a location. More information |
locations[]. | number Minimum value: |
locations[]. | number Minimum value: |
locations[]. | string Preset ID for location properties. |
locations[]. | string Location reference. |
locations[]. | array List of tags a vehicle must have to arrive at the location. More information |
locations[]. | integer All locations in vehicle route with specified sequence_order option have to be visited in non-decreasing order of its values. More information |
locations[]. | number Duration of service at location. Service duration can include any operations at location, such as loading or unloading items from a vehicle, or any other time associated with a location (apart from waiting, which is time after arrival and before service).More information Minimum value: |
locations[]. | number Duration of service at a location, which can be shared among the other orders at exactly the same location. Shared service duration can include such operations as parking of a car, delivering documents, etc. More information Minimum value: |
locations[]. | array IDs of the companies that can access the order information. |
locations[]. | object Shipment size (dimensions and/or weight). More information |
locations[]. | object Size of shipment in custom units. Sizes in custom units are defined in format |
locations[]. | number Size of shipment in custom units. Minimum value: |
locations[]. | object Shipment dimensions and type. |
locations[]. | string Defines allowed container alignment for
Default value:
|
locations[]. | number Depth, meters. Minimum value: |
locations[]. | number Height, meters. Minimum value: |
locations[]. | string Container type:
Default value:
|
locations[]. | number Width, meters. Minimum value: |
locations[]. | number Explicit volume, cubic meters. By default, the value is taken from "volume", if nothing is specified here. Minimum value: |
locations[]. | number Weight of shipment, kilograms. Minimum value: |
locations[]. | string Allowed time window to visit location, in |
locations[]. | array List of allowed time windows. Time windows can not overlap. Fields |
locations[]. | string Allowed hard time window to visit location, in |
locations[]. | string Allowed time window to visit location, in |
locations[]. | string Location title. |
locations[]. | object Restrictions on the time the order spends inside a vehicle |
locations[]. | number Hard time limit, values above it are unacceptable Minimum value: |
locations[]. | number Soft time limit, values above it are acceptable but they will be penalized Minimum value: |
locations[]. | string Defines a type of service at the location:
Default value:
|
locations[]. | boolean When Default value: |
options * | object Solver options. It is forbidden to specify options that are not present in the list below. |
options. | boolean Use ISO 8601 format (YYYY-MM-DDTHH:MM:SS+HH:MM) for |
options. | boolean Do not use toll roads if possible (only for |
options. | array Each item in this array defines a balanced group of routes. Each route in a group corresponds to a single vehicle shift. Shifts are linked with groups by |
options. | string A unique ID of a balanced group of routes. |
options. | object Penalties for imbalanced routes. |
options. | number Penalty per hour of root-sum-square deviation of a route duration from an average duration of a balanced group of routes. Minimum value: |
options. | number Penalty per each missing or extra stop of root-sum-square deviation of a route stop count from an average number of stops in a balanced group of routes. Minimum value: |
options. | boolean Apply penalties defined in |
options. | number If a probability of being late on a location is greater or equal than a specified value, than the location is accounted in Minimum value: |
options. | string Starting date for all routes ( |
options. | boolean When true, solver will classify vehicles based on given vehicle specs to calculate more accurate distances between locations. Can be set to false to reduce size of the task and avoid "The task is too big" error. Default value: |
options. | boolean Fix shifts of locations from planned routes. |
options. | number Level of location proximity influence on vehicle routes. Recommended values are from Minimum value: |
options. | boolean Ignore |
options. | boolean Ignore all zone-related options in vehicles and locations. More information |
options. | array Each item in this array defines list of location load types, that should not be handled within the same vehicle run. More information |
options. | array Each item in this array defines list of location zones, that should not be visited within the same vehicle run. More information |
options. | boolean Start load orders in depot when they are ready (in order of |
options. | array Each item in this array defines a group of locations which should be assigned to the same vehicle shift. Some locations from the group might get dropped. Each location can be referenced by only one location group. More information |
options. | boolean When true, either all or none of the locations in group will be served. |
options. | array |
One Of: | |
options. | boolean When true, all assigned locations in group will be served consecutively, but their order is not fixed. |
options. | string |
options. | string Matrix router to be used for route planning
Default value:
|
options. | number Maximal relation of drop penalty to the sum of drop penalties in all orders. More information Minimum value: |
options. | boolean If possible merge those orders which have the same coordinates, i.e. serve them by a single vehicle. More information |
options. | boolean Compute and minimize the probability of being late to locations. In other words, avoid routes such that the estimated time of arrival is close to the end of a time window. More information |
options. | boolean This option determines whether to penalize for late arrivals or late service.
|
options. | object Penalties for global solution limitations violation. |
options. | object Penalty components for |
options. | number Fixed penalty applied if drop penalty ratio is too high. Default value: |
options. | number Penalty for each exceeding percent of drop penalty percentage. Default value: |
options. | object Penalty components for extra visits to multiorder poins. |
options. | number Penalty for every point where vehicles/couriers arrive more than once. Minimum value: |
options. | number Penalty for every extra vehicle/courier that arrives at multi-order points. Minimum value: |
options. | number Penalty for each extra visit to multi-order points. Minimum value: |
options. | array Each item in this array defines point throughput. |
options. | object |
options. | object Penalty components for throughput exceeding. |
options. | number Fixed penalty applied if throughput is exceeded. Default value: |
options. | number Penalty for each extra kg of throughput exceeding. Default value: |
options. | number Penalty for each extra custom unit of throughput exceeding ( Default value: |
options. | number Penalty for each extra vehicle per hour of throughput exceeding. Default value: |
options. | object WGS84 coordinate of a location. More information |
options. | number Minimum value: |
options. | number Minimum value: |
options. | object Point throughput limit. |
options. | number Point throughput, kilograms per hour. Minimum value: |
options. | number Point throughput, custom units per hour. Minimum value: |
options. | object |
options. | string The time window during which the specified restriction applies. The windows must not intersect with each other, and their union must contain the defined working hours of the corresponding depot. If the restriction is not defined on any time interval outside depot working hours, then it is considered equal to zero. |
options. | number Throughput, simultaneously vehicles. Minimum value: |
options. | boolean Use post optimization: restart algorithm in the last 10% operations with disabled global proximity and balancing. More information |
options. | string Preset ID for task options. |
options. | number Level of location proximity influence on vehicle routes. Recommended values are from Minimum value: |
options. | string Solution quality:
Default value:
|
options. | boolean Restart to optimize only non-dropped orders, in case we haven't find solutions without drops. Enable this option if drops are expected and acceptable for your business scenario. |
options. | string Transportation method. More information
Default value:
|
options. | array List of rest schedule templates. More information |
options. | object |
options. | boolean When true, work break will be put after the last location. If possible it will be merged with the first work break of type listed in |
options. | boolean When true, work break will be put before the first location. If possible it will be merged with the last work break of type listed in |
options. | string Minimal and maximal duration of continuous travel time before rest, format: |
options. | array Types of work breaks this work break can be merged with. This field can only be used with |
options. | number Minimal duration of route needed to make work break necessary, seconds. Minimum value: |
options. | object Penalties applied for violations of work break conditions. |
options. | object Penalty components for early work break. |
options. | number Fixed penalty applied if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
options. | number Penalty for each minute of an early start of work break if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
options. | object Penalty components for late work break. |
options. | number Fixed penalty applied if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
options. | number Penalty for each minute of a late start of work break if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
options. | boolean When true, this work break will be repeated until the end of route. Can only be true for the last break in the chain. |
options. | number Duration of rest, seconds. Minimum value: |
options. | number Minimal duration of route needed to use work break, seconds. Minimum value: |
options. | string Minimal and maximal duration of travel before rest, format: |
options. | string Type of work break. Used in |
options. | string Minimal and maximal duration of time from start of route until rest, format: |
options. | string Minimal and maximal duration of work before rest, format: |
options. | boolean When true, work break will be put after the last location. If possible it will be merged with the first work break of type listed in |
options. | boolean When true, work break will be put before the first location. If possible it will be merged with the last work break of type listed in |
options. | string Minimal and maximal duration of continuous travel time before rest, format: |
options. | array Types of work breaks this work break can be merged with. This field can only be used with |
options. | number Minimal duration of route needed to make work break necessary, seconds. Minimum value: |
options. | object Penalties applied for violations of work break conditions. |
options. | object Penalty components for early work break. |
options. | number Fixed penalty applied if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
options. | number Penalty for each minute of an early start of work break if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
options. | object Penalty components for late work break. |
options. | number Fixed penalty applied if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
options. | number Penalty for each minute of a late start of work break if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
options. | boolean When true, this work break will be repeated until the end of route. Can only be true for the last break in the chain. |
options. | number Duration of rest, seconds. Minimum value: |
options. | number Minimal duration of route needed to use work break, seconds. Minimum value: |
options. | string Minimal and maximal duration of travel before rest, format: |
options. | string Type of work break. Used in |
options. | string Minimal and maximal duration of time from start of route until rest, format: |
options. | string Minimal and maximal duration of work before rest, format: |
options. | string A unique ID of a template. |
options. | object |
options. | boolean Allows to wait in multiorders. More information Default value: |
options. | boolean Compute drop penalty according to shipment weight and volume. It helps optimization when vehicles are highly loaded. Specified location drop penalties are ignored in this case. More information |
vehicles[] * | array List of vehicles, available for route planning. |
vehicles[]. | boolean Vehicle is allowed to visit depots with different ids in the same route |
vehicles[]. | array List of zones, which can be visited by vehicle. More information |
vehicles[]. | object Vehicle capacity. More information |
vehicles[]. | object Amount of custom units a vehicle is able to carry. Capacities in custom units are defined in format |
vehicles[]. | object Vehicle load limits. |
vehicles[]. | number Upper limit of total shipments size in custom units as a percentage of a vehicle capacity Minimum value: |
vehicles[]. | number Upper limit of total shipments volume as a percentage of vehicle load bay volume. For container fitting purposes it is assumed that each dimension is multiplied by the cubic root of Minimum value: |
vehicles[]. | number Upper limit of total shipments weight as a percentage of total weight the vehicle is allowed to carry. Minimum value: |
vehicles[]. | number Amount of custom units a vehicle is able to carry. Minimum value: |
vehicles[]. | object Vehicle dimensions. |
vehicles[]. | number Depth, meters. Minimum value: |
vehicles[]. | number Height, meters. Minimum value: |
vehicles[]. | number Width, meters. Minimum value: |
vehicles[]. | number Weight a vehicle is able to carry, kilograms. Minimum value: |
vehicles[]. | array |
vehicles[]. | object |
vehicles[]. | number Penalty per km exceeding the maximum distance between servicing close locations. Minimum value: |
vehicles[]. | number The maximum distance traveled between servicing two close locations. Minimum value: |
vehicles[]. | object |
vehicles[]. | number Penalty per second exceeding the maximum time between servicing close locations. Minimum value: |
vehicles[]. | number The maximum time between servicing two close locations. Minimum value: |
vehicles[]. | string Transportation method is used to determine close locations. This parameter can be used only if the
|
vehicles[]. | number Maximum distance between two locations in meters at which locations on which the restriction is applied. Minimum value: |
vehicles[]. | number If value is greater than the corresponding value of the Minimum value: |
vehicles[]. | object |
vehicles[]. | number Cost per fact of vehicle use (cost occurred if vehicle is included in route). Minimum value: |
vehicles[]. | number Cost of using vehicle per hour. It should not be zero or very small, otherwise you may get routes which are not optimal in terms of time. Minimum value: |
vehicles[]. | number Cost of using vehicle per kilometer. It should not be zero or very small, otherwise you may get routes which are not optimal in terms of distance. Minimum value: |
vehicles[]. | number Cost of using vehicle per location (default 0). Minimum value: |
vehicles[]. | number Cost per single vehicle run from depot to locations. Minimum value: |
vehicles[]. | number Cost of carrying one tonne for one kilometer (default 0). Minimum value: |
vehicles[]. | string Defines whether this machine is allowed to deliver orders to the cross-dock depot. More information
Default value:
|
vehicles[]. | number Additional time required to load this vehicle in the depot. Minimum value: |
vehicles[]. | object |
vehicles[]. | object |
vehicles[]. | array List of excluding vehicle tags, checked for compatibility with location tags (POSIX-extended regular expression are used). More information |
vehicles[]. | object Defines |
vehicles[]. | boolean If |
vehicles[]. | array This list can be used for setting the duration of work before each break for several first breaks in each shift (or the whole route, if no shifts are present). If the list of shifts (see |
vehicles[]. | string Unique identifier of a shift. |
vehicles[]. | number Duration of continuous work before the break, seconds. Minimum value: |
vehicles[]. | array List of zones, which can not be visited by vehicle. More information |
vehicles[]. | object Defines |
vehicles[]. | object Vehicle ID. All vehicle IDs in task must be unique and have the same type: integer or string. More information |
vehicles[]. | integer The number of the GPS tracker. |
vehicles[]. | array Each item in this array defines list of location load types, that should not be handled within the same vehicle run (overrides |
vehicles[]. | integer Maximal number of middle depots (i.e. depots which do not break the run) in the route Default value: |
vehicles[]. | integer Maximal number of the vehicle runs from the depot to locations in all shifts. More information Default value: |
vehicles[]. | object |
vehicles[]. | number Minimal total weight of all orders in one point. More information |
vehicles[]. | object Penalties for vehicle limitations violation. |
vehicles[]. | object Penalty components for arrived after start of timewindow |
vehicles[]. | boolean Option for arrive as soon as possible even it includes added wait in route |
vehicles[]. | number Penalty for average arrived after start of timewindow |
vehicles[]. | object Penalty components for insufficient total orders weight in point. |
vehicles[]. | number Fixed penalty applied if total orders weight is too low. Default value: |
vehicles[]. | number Penalty for each lacking kg of total orders weight. Default value: |
vehicles[]. | string Phone number of the courier. |
vehicles[]. | object A planned vehicle route, should be used to assign already chosen locations to vehicles. These locations will not be dropped even if some strict constraint(s) is violated and will be served by the vehicle. The order of locations provided in this option can be changed for optimization of final route. By default shifts assigned to planned locations can be changed as well. They can be fixed with |
vehicles[]. | array A planned order of locations in a vehicle route including all shifts and multiple runs. If the list of shifts (see |
vehicles[]. | string Default value:
|
vehicles[]. | array List of IDs of orders delivered to the crossdock for delivery to the destination. |
One Of: | |
vehicles[]. | boolean All orders, loaded in this location, have to be delivered in current run. |
vehicles[]. | object Reference to a location specified in |
vehicles[]. | boolean Location is a middle depot. |
vehicles[]. | array Ids of |
One Of: | |
vehicles[]. | array A list of IDs of pickup orders picked up in the crossdock. |
One Of: | |
vehicles[]. | string Unique identifier of a shift. |
vehicles[]. | boolean This option determines what happens if a vehicle arrives to the planned location early. When Default value: |
vehicles[]. | boolean It is necessary to visit all depots, listed in |
vehicles[]. | string Route start time, in |
vehicles[]. | array Planned work breaks for a vehicle route including all shifts and multiple runs. If the list of shifts (see |
vehicles[]. | string Unique identifier of a shift. |
vehicles[]. | number Duration of continuous work before the break, seconds. Minimum value: |
vehicles[]. | string Preset ID for vehicle properties. |
vehicles[]. | string Vehicle reference number. |
vehicles[]. | object Schedule of rest breaks. More information |
vehicles[]. | object |
vehicles[]. | boolean When true, work break will be put after the last location. If possible it will be merged with the first work break of type listed in |
vehicles[]. | boolean When true, work break will be put before the first location. If possible it will be merged with the last work break of type listed in |
vehicles[]. | string Minimal and maximal duration of continuous travel time before rest, format: |
vehicles[]. | array Types of work breaks this work break can be merged with. This field can only be used with |
vehicles[]. | number Minimal duration of route needed to make work break necessary, seconds. Minimum value: |
vehicles[]. | object Penalties applied for violations of work break conditions. |
vehicles[]. | object Penalty components for early work break. |
vehicles[]. | number Fixed penalty applied if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | number Penalty for each minute of an early start of work break if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | object Penalty components for late work break. |
vehicles[]. | number Fixed penalty applied if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | number Penalty for each minute of a late start of work break if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | boolean When true, this work break will be repeated until the end of route. Can only be true for the last break in the chain. |
vehicles[]. | number Duration of rest, seconds. Minimum value: |
vehicles[]. | number Minimal duration of route needed to use work break, seconds. Minimum value: |
vehicles[]. | string Minimal and maximal duration of travel before rest, format: |
vehicles[]. | string Type of work break. Used in |
vehicles[]. | string Minimal and maximal duration of time from start of route until rest, format: |
vehicles[]. | string Minimal and maximal duration of work before rest, format: |
vehicles[]. | boolean When true, work break will be put after the last location. If possible it will be merged with the first work break of type listed in |
vehicles[]. | boolean When true, work break will be put before the first location. If possible it will be merged with the last work break of type listed in |
vehicles[]. | string Minimal and maximal duration of continuous travel time before rest, format: |
vehicles[]. | array Types of work breaks this work break can be merged with. This field can only be used with |
vehicles[]. | number Minimal duration of route needed to make work break necessary, seconds. Minimum value: |
vehicles[]. | object Penalties applied for violations of work break conditions. |
vehicles[]. | object Penalty components for early work break. |
vehicles[]. | number Fixed penalty applied if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | number Penalty for each minute of an early start of work break if a worker starts a work break while they worked for a less than the specified minimal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | object Penalty components for late work break. |
vehicles[]. | number Fixed penalty applied if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | number Penalty for each minute of a late start of work break if a worker starts a work break while they worked for a more than the specified maximal work duration since the start of work or the previous work break ending. Default value: |
vehicles[]. | boolean When true, this work break will be repeated until the end of route. Can only be true for the last break in the chain. |
vehicles[]. | number Duration of rest, seconds. Minimum value: |
vehicles[]. | number Minimal duration of route needed to use work break, seconds. Minimum value: |
vehicles[]. | string Minimal and maximal duration of travel before rest, format: |
vehicles[]. | string Type of work break. Used in |
vehicles[]. | string Minimal and maximal duration of time from start of route until rest, format: |
vehicles[]. | string Minimal and maximal duration of work before rest, format: |
vehicles[]. | string ID of a rest schedule template used in this vehicle. |
vehicles[]. | boolean If true, the vehicle returns to its Default value: |
vehicles[]. | string Transportation method. If present, overrides
|
vehicles[]. | number Service duration adjustment coefficient for slow or fast workers. More information Minimum value: |
vehicles[]. | number Shared service duration adjustment coefficient for slow or fast workers. More information Minimum value: |
vehicles[]. | array List of vehicle shifts. More information |
vehicles[]. | string ID of a corresponding balanced group of routes (see the option |
vehicles[]. | number Hard limit on the maximum shift duration in seconds. If both Minimum value: |
vehicles[]. | string Allowed hard time window to visit location, in |
vehicles[]. | boolean Restricts time window relaxation during route planning. When true, vehicles are allowed to finish a shift only within the specified time window. More information |
vehicles[]. | string Unique identifier of a shift. |
vehicles[]. | number Maximal duration of a shift in seconds. If a planned shift duration is greater than specified, the shift out of time penalties are applied. Minimum value: |
vehicles[]. | number Maximal mileage of the vehicle during the shift in kilometers. If a planned mileage is greater than this value, the penalties from a shift parameter Minimum value: |
vehicles[]. | integer Maximal number of the vehicle runs from the depot to locations in shift. Default value: |
vehicles[]. | integer Maximal number of shift stops, if the final stop count is greater than this value, Minimum value: |
vehicles[]. | integer Minimal number of shift stops, if the final stop count is less than this value, Minimum value: |
vehicles[]. | integer Minimal number of shift stops with unique coordinates, if the final stop count is less than this value, Minimum value: |
vehicles[]. | object Penalties for shift constraints violation. |
vehicles[]. | object Penalty components for shifts started too early (used instead of |
vehicles[]. | number Fixed penalty applied if the vehicle starts or finishes the shift before the start of the time window. Default value: |
vehicles[]. | number Penalty for each minute of earliness if the vehicle starts or finishes the shift before the start of the time window. Default value: |
vehicles[]. | object Penalty components for shifts finished too late (used instead of |
vehicles[]. | number Fixed penalty applied if the vehicle starts or finishes the shift after the end of the time window or shift duration exceeds the Default value: |
vehicles[]. | number Penalty for each minute of lateness if the vehicle starts or finishes the shift after the end of the time window or if the vehicle spends more than Default value: |
vehicles[]. | object Penalties applied for violating shift's |
vehicles[]. | number Fixed penalty applied if a vehicle shift has mileage greater than Minimum value: |
vehicles[]. | number Penalty applied per each extra kilometer when shift mileage is greater than Minimum value: |
vehicles[]. | object Penalty components for time window failure. Can be used to set the values of |
vehicles[]. | number Fixed penalty applied if the vehicle starts or finishes the shift outside of the time window. See the specifications of Default value: |
vehicles[]. | number Penalty for each minute of being outside of the time window of the shift. See the specifications of Default value: |
vehicles[]. | object Penalties applied for violating shift's |
vehicles[]. | number Fixed penalty applied if a vehicle shift has greater than Minimum value: |
vehicles[]. | number Penalty applied per each extra stop when shift stop count is greater than Minimum value: |
vehicles[]. | object Penalties applied for violating shift's |
vehicles[]. | number Fixed penalty applied if a vehicle shift has less than Minimum value: |
vehicles[]. | number Penalty applied per each missing stop when shift stop count is less than Minimum value: |
vehicles[]. | object Penalties applied for violating shift's |
vehicles[]. | number Fixed penalty applied if a vehicle shift has less than Minimum value: |
vehicles[]. | number Penalty applied per each missing stop when shift stop count is less than Minimum value: |
vehicles[]. | string Preset ID for vehicle shift properties. |
vehicles[]. | number Duration of service in between shifts (in seconds). It can include any operations needed to finish the shift, such as time to change a driver, exchange papers etc (default: 0). Minimum value: |
vehicles[]. | string Allowed time window to visit location, in |
vehicles[]. | object Vehicle specification. More information |
vehicles[]. | number Height of the vehicle, meters. Minimum value: |
vehicles[]. | number Length of the vehicle, meters. Minimum value: |
vehicles[]. | number Maximum weight of the vehicle, tons. Minimum value: |
vehicles[]. | number Maximum weight of the vehicle, kilograms. When solving the problem, the characteristic will be rounded up to tons.If both characteristics are set Minimum value: |
vehicles[]. | number Width of the vehicle, meters. Minimum value: |
vehicles[]. | object Defines |
vehicles[]. | object |
vehicles[]. | array List of vehicle tags, checked for compatibility with location tags (POSIX-extended regular expression are used). More information |
vehicles[]. | object Trailer specification. More information |
vehicles[]. | object Trailer capacity. |
vehicles[]. | object Amount of custom units a trailer is able to carry. Capacities in custom units are defined in format |
vehicles[]. | object Trailer load limits. |
vehicles[]. | number Upper limit of total shipments size in custom units as a percentage of a trailer capacity Minimum value: |
vehicles[]. | number Upper limit of total shipments volume as a percentage of trailer volume. For container fitting purposes it is assumed that each dimension is multiplied by the cubic root of Minimum value: |
vehicles[]. | number Upper limit of total shipments weight as a percentage of total weight the trailer is allowed to carry. Minimum value: |
vehicles[]. | number Amount of custom units a trailer is able to carry. Minimum value: |
vehicles[]. | object Trailer dimensions. |
vehicles[]. | number Depth, meters. Minimum value: |
vehicles[]. | number Height, meters. Minimum value: |
vehicles[]. | number Width, meters. Minimum value: |
vehicles[]. | number Weight a trailer is able to carry, kilograms. Minimum value: |
vehicles[]. | object Trailer cost. |
vehicles[]. | number Cost per fact of trailer use (cost occurred if trailer is used in route). Minimum value: |
vehicles[]. | number Cost of using trailer per hour. Minimum value: |
vehicles[]. | number Cost of using trailer per kilometer. Minimum value: |
vehicles[]. | number Cost of using trailer per location (default 0). Minimum value: |
vehicles[]. | number Cost per single vehicle run from depot to locations. Minimum value: |
vehicles[]. | number Cost of carrying one tonne for one kilometer (default 0). Minimum value: |
vehicles[]. | number Extra time to couple the trailer, seconds. Minimum value: |
vehicles[]. | number Extra time to decouple the trailer, seconds. Minimum value: |
vehicles[]. | object The maximum difference between the loading of the trailer and the head. |
vehicles[]. | object A maximum allowable difference in the loaded amount of custom units between the trailer and the head. The difference in custom units are defined in format |
vehicles[]. | number The maximum allowable difference in the loaded amount of custom units between the trailer and the head. |
vehicles[]. | number The maximum allowable difference in the loaded volume between the trailer and the head, cubic meters. |
vehicles[]. | number The maximum allowable difference in the loaded weight between the trailer and the head, kilograms. |
vehicles[]. | number Penalty for each rolling of goods from the trailer to the head. Minimum value: |
vehicles[]. | object Time for loading shipments from trailer to head. In case multiple types of time are specified, the one that takes the most time is chosen. In case none of them is specified, only fixed loading time is used. |
vehicles[]. | number Fixed time spent each time a trailer is loaded or unloaded, seconds. Minimum value: |
vehicles[]. | number Loading time per kg, seconds. Minimum value: |
vehicles[]. | number Loading time per cubic meter, seconds. Minimum value: |
vehicles[]. | number Loading time per unit, seconds. Minimum value: |
vehicles[]. | number Travel duration adjustment coefficient for slow or fast vehicles. More information Minimum value: |
vehicles[]. | boolean If true, the first route of the vehicle will go through the
Default value: |
vehicles[]. | array List of locations to be visited by a vehicle in exact order as fixed part of the route without optimizations, with optional times of departure from some locations. If the work breaks between visited locations need to be precisely scheduled, use |
vehicles[]. | string Default value:
|
vehicles[]. | array List of IDs of orders delivered to the crossdock for delivery to the destination. |
One Of: | |
vehicles[]. | object Reference to a location specified in |
vehicles[]. | boolean Location is a middle depot. |
vehicles[]. | array A list of IDs of pickup orders picked up in the crossdock. |
One Of: | |
vehicles[]. | string Unique identifier of a shift. |
vehicles[]. | string Time of departure from a location, in |
vehicles[]. | boolean This option determines what happens if a vehicle arrives to the planned location early. When Default value: |
vehicles[]. | object Description of a pedestrian courier. |
vehicles[]. | object Capacity of a courier |
vehicles[]. | number Amount of custom units a courier is able to carry. Minimum value: |
vehicles[]. | object Courier work cost. |
vehicles[]. | number Cost per hour of courier walking routes. Minimum value: |
vehicles[]. | number Cost per kilometer walked by courier. Minimum value: |
vehicles[]. | object |
vehicles[]. | object |
vehicles[]. | number Penalty for exceeding the walking edge limit per meter. Minimum value: |
vehicles[]. | number Max walking distance between two locations in route, meters. Minimum value: |
zones[] | array |
zones[]. | object |
zones[]. | array |
zones[]. | string Always equals |
zones[]. | string Zone id |
* Required parameter
Responses
Code 202
Task has been queued for execution.
{ "id": string, "message": string, "status": { "cancelled": number, "completed": number, "estimate": number, "queued": number, "started": number } }
Copied to clipboard
Representation
Fields
id * | string Task unique id. |
message | string Human-readable description of task state. |
status * | object Task statuses object. Keys are task statuses, values are UNIX timestamps for corresponding status. Possible status transits: |
status. | number Task execution has been cancelled by user or system due to timeout or error. |
status. | number Task execution completed with result or error. |
status. | number Estimated time when task expected to be completed. The time estimation may change during solving process. The estimate is valid for approximately 75% of tasks (they may be ready 5-15 seconds before "estimate")Some tasks may require more time for calculation, typically this extra time is not more than 1 minute. |
status. | number Task has been queued for execution. |
status. | number Task execution has been started. |
id * | string Task unique id. |
message | string Human-readable description of task state. |
status * | object Task statuses object. Keys are task statuses, values are UNIX timestamps for corresponding status. Possible status transits: |
status. | number Task execution has been cancelled by user or system due to timeout or error. |
status. | number Task execution completed with result or error. |
status. | number Estimated time when task expected to be completed. The time estimation may change during solving process. The estimate is valid for approximately 75% of tasks (they may be ready 5-15 seconds before "estimate")Some tasks may require more time for calculation, typically this extra time is not more than 1 minute. |
status. | number Task has been queued for execution. |
status. | number Task execution has been started. |
* Required parameter
Code 400
Invalid JSON in POST request body.
{ "error": { "incident_id": string, "message": string } }
Copied to clipboard
Representation
Fields
error * | object Error description. |
error. | string Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation. |
error. | string Human-readable error description. |
* Required parameter
Code 403
You do not have permission to add MVRP tasks.
Code 500
Server error during request processing.
{ "error": { "incident_id": string, "message": string } }
Copied to clipboard
Representation
Fields
error * | object Error description. |
error. | string Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation. |
error. | string Human-readable error description. |
* Required parameter
Code 503
Not enough resources available to run the task.