Add task

  1. HTTP Request
  2. Query Parameters
  3. Request Body
    1. Representation
    2. Fields
  4. Responses
    1. Code 202
      1. Representation
      2. Fields
    2. Code 400
      1. Representation
      2. Fields
    3. Code 401
      1. Representation
      2. Fields
    4. Code 429
      1. Representation
      2. Fields
    5. Code 500
      1. Representation
      2. Fields
    6. Code 503
      1. Representation
      2. Fields

Enqueue an MVRP task for processing.

HTTP Request

POST https://courier.yandex.ru/vrs/api/v1/add/mvrp\
?apikey={string}\
&parent_task_id={string}

Query Parameters

apikey *

string

API key.

parent_task_id

string

Parent task id.

apikey *

string

API key.

parent_task_id

string

Parent task id.

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,
    "load_service_duration_s": number,
    "package_throughput": {},
    "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,
    "throughput": {},
    "time_window": string,
    "time_windows": [
      {
        "hard_time_window": string,
        "time_window": string
      }
    ],
    "time_windows_loading": {
      "hard_time_window": string,
      "hard_window": boolean,
      "penalty": {
        "early": {
          "fixed": number,
          "minute": number
        },
        "late": {
          "fixed": number,
          "minute": number
        },
        "out_of_time": {
          "fixed": number,
          "minute": number
        }
      },
      "time_window": string,
      "time_windows": [
        {
          "hard_time_window": string,
          "time_window": string
        }
      ]
    },
    "time_windows_refilling": {
      "hard_time_window": string,
      "hard_window": boolean,
      "penalty": {
        "early": {
          "fixed": number,
          "minute": number
        },
        "late": {
          "fixed": number,
          "minute": number
        },
        "out_of_time": {
          "fixed": number,
          "minute": number
        }
      },
      "time_window": string,
      "time_windows": [
        {
          "hard_time_window": string,
          "time_window": string
        }
      ]
    },
    "time_windows_unloading": {
      "hard_time_window": string,
      "hard_window": boolean,
      "penalty": {
        "early": {
          "fixed": number,
          "minute": number
        },
        "late": {
          "fixed": number,
          "minute": number
        },
        "out_of_time": {
          "fixed": number,
          "minute": number
        }
      },
      "time_window": string,
      "time_windows": [
        {
          "hard_time_window": string,
          "time_window": string
        }
      ]
    },
    "title": string,
    "type": string,
    "unload_service_duration_s": number,
    "use_in_proximity": boolean
  },
  "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,
      "load_service_duration_s": number,
      "package_throughput": {},
      "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,
      "throughput": {},
      "time_window": string,
      "time_windows": [
        {
          "hard_time_window": string,
          "time_window": string
        }
      ],
      "time_windows_loading": {
        "hard_time_window": string,
        "hard_window": boolean,
        "penalty": {
          "early": {
            "fixed": number,
            "minute": number
          },
          "late": {
            "fixed": number,
            "minute": number
          },
          "out_of_time": {
            "fixed": number,
            "minute": number
          }
        },
        "time_window": string,
        "time_windows": [
          {
            "hard_time_window": string,
            "time_window": string
          }
        ]
      },
      "time_windows_refilling": {
        "hard_time_window": string,
        "hard_window": boolean,
        "penalty": {
          "early": {
            "fixed": number,
            "minute": number
          },
          "late": {
            "fixed": number,
            "minute": number
          },
          "out_of_time": {
            "fixed": number,
            "minute": number
          }
        },
        "time_window": string,
        "time_windows": [
          {
            "hard_time_window": string,
            "time_window": string
          }
        ]
      },
      "time_windows_unloading": {
        "hard_time_window": string,
        "hard_window": boolean,
        "penalty": {
          "early": {
            "fixed": number,
            "minute": number
          },
          "late": {
            "fixed": number,
            "minute": number
          },
          "out_of_time": {
            "fixed": number,
            "minute": number
          }
        },
        "time_window": string,
        "time_windows": [
          {
            "hard_time_window": string,
            "time_window": string
          }
        ]
      },
      "title": string,
      "type": string,
      "unload_service_duration_s": number,
      "use_in_proximity": boolean
    }
  ],
  "initial_routes": [
    {
      "fixed_order": boolean,
      "immutable": boolean,
      "route": [
        {
          "load_to_head": [
            {}
          ],
          "load_to_trailer": [
            {}
          ],
          "multi_order": boolean,
          "node": {
            "type": string,
            "value": {
              "location_id": string,
              "passed_time_s": number
            }
          },
          "waiting_duration_s": number
        }
      ],
      "shift": {
        "balanced_group_id": string,
        "end": {
          "actual_arrival_time_s": number,
          "actual_departure_time_s": number,
          "actual_service_start_time_s": number,
          "actual_waiting_duration_s": number,
          "arrival_time_s": number,
          "departure_time_s": number,
          "failed_time_window": {
            "duration_s": number,
            "how": string
          },
          "load_to_head": [
            {}
          ],
          "load_to_trailer": [
            {}
          ],
          "multi_order": boolean,
          "node": {
            "type": string,
            "used_hard_time_window": string,
            "used_projection": {
              "lat": number,
              "lon": number
            },
            "used_time_window": string,
            "value": {
              "location_id": string,
              "passed_time_s": number
            }
          },
          "overtime": {
            "duration_s": number
          },
          "probably_failed_time_window": {
            "duration_s": number,
            "high_risk": boolean,
            "how": string,
            "probability": number
          },
          "stop_sequence_number": integer,
          "transit_distance_m": number,
          "transit_duration_s": number,
          "violations": [
            {
              "high_risk": boolean,
              "probability": number,
              "type": string
            }
          ],
          "waiting_duration_s": number
        },
        "id": string,
        "start": {
          "actual_arrival_time_s": number,
          "actual_departure_time_s": number,
          "actual_service_start_time_s": number,
          "actual_waiting_duration_s": number,
          "arrival_time_s": number,
          "departure_time_s": number,
          "failed_time_window": {
            "duration_s": number,
            "how": string
          },
          "load_to_head": [
            {}
          ],
          "load_to_trailer": [
            {}
          ],
          "multi_order": boolean,
          "node": {
            "type": string,
            "used_hard_time_window": string,
            "used_projection": {
              "lat": number,
              "lon": number
            },
            "used_time_window": string,
            "value": {
              "location_id": string,
              "passed_time_s": number
            }
          },
          "overtime": {
            "duration_s": number
          },
          "probably_failed_time_window": {
            "duration_s": number,
            "high_risk": boolean,
            "how": string,
            "probability": number
          },
          "stop_sequence_number": integer,
          "transit_distance_m": number,
          "transit_duration_s": number,
          "violations": [
            {
              "high_risk": boolean,
              "probability": number,
              "type": string
            }
          ],
          "waiting_duration_s": number
        }
      }
    }
  ],
  "locations": [
    {
      "address": string,
      "allow_trailers": boolean,
      "can_be_merged": boolean,
      "can_be_split": boolean,
      "comments": string,
      "crossdock_mode": string,
      "custom_value": number,
      "delivery_deadline": string,
      "delivery_to_any": [
        {}
      ],
      "depot_expiring_time": string,
      "depot_ready_time": string,
      "description": string,
      "dropped_ratio": number,
      "hard_time_window": string,
      "hard_window": boolean,
      "in_lifo_order": boolean,
      "load_types": [
        string
      ],
      "max_split_parts": integer,
      "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
        },
        "depot_expiring_time": {
          "fixed": number,
          "minute": number
        },
        "depot_ready_time": {
          "fixed": number,
          "minute": number
        },
        "early": {
          "fixed": number,
          "minute": number
        },
        "late": {
          "fixed": number,
          "minute": number
        },
        "out_of_time": {
          "fixed": number,
          "minute": number
        },
        "rolling_throughput": {
          "fixed": number,
          "kg": number,
          "unit": number,
          "vehicle": number
        },
        "throughput": {
          "fixed": number,
          "kg": number,
          "unit": number,
          "vehicle": number
        },
        "time_between_visits": {
          "fixed": number,
          "minute": number
        },
        "transit_time": {}
      },
      "phone": string,
      "pickup_from_any": boolean,
      "pickup_must_reach_depot": boolean,
      "point": {
        "lat": number,
        "lon": number
      },
      "preset_id": string,
      "ref": string,
      "required_tags": [
        string
      ],
      "rolling_throughput": {},
      "sequence_order": integer,
      "service_durations": {
        "parking": 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
      },
      "soft_depot_expiring_time": string,
      "soft_depot_ready_time": string,
      "split_parts_must_fill_whole_vehicle": boolean,
      "throughput": {},
      "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": {
          "custom_value": number,
          "hour": number,
          "ignore_unused_vehicles": boolean,
          "km": number,
          "served_order": number,
          "stop": number,
          "unit": number,
          "weight_kg": number
        }
      }
    ],
    "close_location_groups_radius_m": number,
    "close_locations_during_post_optimization_only": boolean,
    "critical_lateness_risk_probability": number,
    "date": string,
    "enable_vehicle_classes": boolean,
    "fix_planned_shifts": boolean,
    "force_merge_multiorders": boolean,
    "global_proximity_factor": number,
    "ignore_min_stops_for_unused": boolean,
    "ignore_zones": boolean,
    "immutable": 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_distance_to_projection_m": number,
    "max_drop_penalty_percentage": number,
    "max_split_orders_percentage": number,
    "merge_multiorders": boolean,
    "merge_multiorders_of_different_clients": boolean,
    "minimize_lateness_risk": boolean,
    "multiorder_radius_m": number,
    "penalize_late_service": boolean,
    "penalty": {
      "close_location_groups": {
        "per_extra_point": number,
        "per_extra_vehicle": number,
        "per_extra_visit": number
      },
      "drop_penalty_percentage": {
        "fixed": number,
        "per_percent": number
      },
      "multiorders": {
        "per_extra_point": number,
        "per_extra_vehicle": number,
        "per_extra_visit": number
      },
      "split_orders_percentage": {
        "fixed": number,
        "per_percent": number
      }
    },
    "points_throughputs": [
      {
        "penalty": {
          "throughput": {
            "fixed": number,
            "kg": number,
            "unit": number,
            "vehicle": number
          }
        },
        "point": {
          "lat": number,
          "lon": number
        },
        "throughput": {}
      }
    ],
    "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
      ],
      "can_change_depot_between_runs": boolean,
      "capacity": {
        "custom": {},
        "limits": {
          "units_perc": number,
          "volume_perc": number,
          "weight_perc": number
        },
        "units": number,
        "volume": {
          "depth_m": number,
          "height_m": number,
          "width_m": number
        },
        "volume_cbm": 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,
      "depots_only_at_run_beginning": boolean,
      "excluded_tags": [
        string
      ],
      "finish_route_in_starting_depot": boolean,
      "finish_run_in_starting_depot": boolean,
      "first_edges_penalty_factor": number,
      "fixed_planned_route": boolean,
      "fixed_work_breaks": [
        {
          "shift_id": string,
          "work_duration_s": number
        }
      ],
      "forbidden_zones": [
        string
      ],
      "imei": integer,
      "immutable": boolean,
      "incompatible_load_types": [
        "array"
      ],
      "incompatible_zones": [
        "array"
      ],
      "last_edges_penalty_factor": number,
      "max_middle_depots": integer,
      "max_runs": integer,
      "min_stop_weight": number,
      "onboard_incompatible_load_types": boolean,
      "optional_zones": [
        {
          "value": number,
          "zone": string
        }
      ],
      "penalty": {
        "arrival_after_start": {
          "as_soon_as_possible": boolean,
          "average_h": number
        },
        "empty_runs": {
          "fixed": number,
          "per_run": 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": [
              {}
            ],
            "order_ratio": number,
            "parking_mode": string,
            "picked_orders": [
              {}
            ],
            "shift_id": string,
            "wait_if_early": boolean
          }
        ],
        "planned_runs_first": boolean,
        "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,
          "immutable": boolean,
          "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
          },
          "volume_cbm": number,
          "weight_kg": number
        },
        "cost": {
          "fixed": number,
          "hour": number,
          "km": number,
          "location": number,
          "run": number,
          "tonne_km": number,
          "waiting_hour": 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": [
        {
          "delivered_orders": [
            {}
          ],
          "order_ratio": number,
          "shift_id": string,
          "time": string,
          "wait_if_early": boolean
        }
      ],
      "walking_courier": {
        "capacity": {
          "units": number
        },
        "cost": {
          "hour": number,
          "km": number
        },
        "restrictions": {
          "max_parking_duration_s": {
            "penalty": number,
            "value": number
          },
          "max_parking_walking_distance_m": {
            "penalty": number,
            "value": number
          },
          "max_walking_edge_distance_m": {
            "penalty": number,
            "value": number
          }
        }
      }
    }
  ],
  "zones": [
    {
      "geometry": {
        "coordinates": [
          "array"
        ],
        "type": string
      },
      "id": string
    }
  ]
}
Copied to clipboard

Representation

Collapse all
Expand all

Fields

depot

object

A depot, by default start and finish point for a vehicle on route.

depot.address

string

Address of the location.

depot.crossdock_safety_waiting_duration_s

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: 0.
Maximum value: 3.1536e+09.
Default value: 3600.

depot.description

string

Location description.

depot.finish_service_duration_s

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: 0.
Maximum value: 3.1536e+09.

depot.flexible_start_time

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
Also when flexible_start_time option is used, the solver can generate routes where arrival time is very close to end of the time window. It is often undesired route plans, because there is a risk of being late on such locations. An option minimize_lateness_risk and/or penalize_late_service is recommended to be used together with flexible_start_time to avoid such routes.

depot.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.hard_window

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.id

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

depot.load_service_duration_s

number

Additional duration for loading delivery orders into a vehicle, added only if there is at least one delivery order,loaded in this depot.

Minimum value: 0.

depot.package_throughput

object

Restriction on packaging speed in depot.

depot.package_throughput.kg_per_hour

object

depot.package_throughput.kg_per_hour.time_window

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.package_throughput.kg_per_hour.value

number

Depot package throughput, kilograms per hour.

Minimum value: 0.

depot.package_throughput.units_per_hour

object

depot.package_throughput.units_per_hour.time_window

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.package_throughput.units_per_hour.value

number

Depot package throughput, units per hour.

Minimum value: 0.

depot.penalty

object

Penalties for depot time window or throughput failure. More information

depot.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depot.penalty.early.fixed

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: 1000.

depot.penalty.early.minute

number

Penalty for each minute of early service of the depot. Applied in the same cases as the fixed penalty.

Default value: 17.

depot.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depot.penalty.late.fixed

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: 1000.

depot.penalty.late.minute

number

Penalty for each minute of lateness for every visit of the depot after the end of the time window.

Default value: 17.

depot.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depot.penalty.out_of_time.fixed

number

Fixed penalty applied if the depot is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depot.penalty.out_of_time.minute

number

Penalty for each minute of being outside of the time window of the depot. See the specifications of early and late options for more details in each case.

Default value: 17.

depot.penalty.package_throughput

object

Penalty components for package throughput exceeding.

depot.penalty.package_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

depot.penalty.package_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

depot.penalty.package_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

depot.penalty.throughput

object

Penalty components for throughput exceeding.

depot.penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

depot.penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

depot.penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

depot.penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

depot.point *

object

WGS84 coordinate of a location. More information

depot.point.lat *

number

Minimum value: -90.
Maximum value: 90.

depot.point.lon *

number

Minimum value: -180.
Maximum value: 180.

depot.preliminary_service_duration_s

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 depot_ready_time of deliveries that are loaded at this vehicle. More information

Minimum value: 0.
Maximum value: 3.1536e+09.

depot.preset_id

string

Preset number for depot properties.

depot.ref

string

Location reference.

depot.service_duration_s

object

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

depot.service_duration_s.fixed

number

Fixed service duration for any part of the order.

depot.service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

depot.throughput

object

Depot throughput limit. More information

depot.throughput.kg_per_hour

object

depot.throughput.kg_per_hour.time_window

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.throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

depot.throughput.units_per_hour

object

depot.throughput.units_per_hour.time_window

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.throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

depot.throughput.vehicle_count

object

depot.throughput.vehicle_count.time_window

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.throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

depot.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depot.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_loading

object

Time windows when the vehicle is allowed to leave the depot on the 1st run

depot.time_windows_loading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_loading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depot.time_windows_loading.penalty

object

depot.time_windows_loading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depot.time_windows_loading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depot.time_windows_loading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depot.time_windows_loading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depot.time_windows_loading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depot.time_windows_loading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depot.time_windows_loading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depot.time_windows_loading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depot.time_windows_loading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depot.time_windows_loading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_loading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depot.time_windows_loading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_loading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_refilling

object

Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading

depot.time_windows_refilling.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_refilling.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depot.time_windows_refilling.penalty

object

depot.time_windows_refilling.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depot.time_windows_refilling.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depot.time_windows_refilling.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depot.time_windows_refilling.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depot.time_windows_refilling.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depot.time_windows_refilling.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depot.time_windows_refilling.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depot.time_windows_refilling.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depot.time_windows_refilling.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depot.time_windows_refilling.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_refilling.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depot.time_windows_refilling.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_refilling.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_unloading

object

Time windows when the vehicle is allowed to return to the depot on the last run

depot.time_windows_unloading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_unloading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depot.time_windows_unloading.penalty

object

depot.time_windows_unloading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depot.time_windows_unloading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depot.time_windows_unloading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depot.time_windows_unloading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depot.time_windows_unloading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depot.time_windows_unloading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depot.time_windows_unloading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depot.time_windows_unloading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depot.time_windows_unloading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depot.time_windows_unloading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_unloading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depot.time_windows_unloading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_unloading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.title

string

Location title.

depot.type

string

Defines a type of depot: depot or crossdock.

  • depot — the main depot where orders are stored.
  • crossdock — the additional depot where there are no orders initially. To deliver orders from this depot, another vehicle must first deliver them here from the main depot where they are stored.

Default value: depot.

Allowed values
  1. depot
  2. crossdock

depot.unload_service_duration_s

number

Additional duration for unloading pickup orders from a vehicle, added only if there is at least one pickup order,delivered in this depot.

Minimum value: 0.

depot.use_in_proximity

boolean

When false, this depot will be ignored in computation of proximity and global proximity. When true, this depot will be used in computation of proximity and global proximity.If parameter is not defined, this depot will be used in computation of proximity in compatible mode.

depots[]

array

List of depots. Fields depot and depots are mutually exclusive. More information

depots[].address

string

Address of the location.

depots[].crossdock_safety_waiting_duration_s

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: 0.
Maximum value: 3.1536e+09.
Default value: 3600.

depots[].description

string

Location description.

depots[].finish_service_duration_s

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: 0.
Maximum value: 3.1536e+09.

depots[].flexible_start_time

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
Also when flexible_start_time option is used, the solver can generate routes where arrival time is very close to end of the time window. It is often undesired route plans, because there is a risk of being late on such locations. An option minimize_lateness_risk and/or penalize_late_service is recommended to be used together with flexible_start_time to avoid such routes.

depots[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].hard_window

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[].id

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

depots[].load_service_duration_s

number

Additional duration for loading delivery orders into a vehicle, added only if there is at least one delivery order,loaded in this depot.

Minimum value: 0.

depots[].package_throughput

object

Restriction on packaging speed in depot.

depots[].package_throughput.kg_per_hour

object

depots[].package_throughput.kg_per_hour.time_window

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[].package_throughput.kg_per_hour.value

number

Depot package throughput, kilograms per hour.

Minimum value: 0.

depots[].package_throughput.units_per_hour

object

depots[].package_throughput.units_per_hour.time_window

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[].package_throughput.units_per_hour.value

number

Depot package throughput, units per hour.

Minimum value: 0.

depots[].penalty

object

Penalties for depot time window or throughput failure. More information

depots[].penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depots[].penalty.early.fixed

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: 1000.

depots[].penalty.early.minute

number

Penalty for each minute of early service of the depot. Applied in the same cases as the fixed penalty.

Default value: 17.

depots[].penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depots[].penalty.late.fixed

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: 1000.

depots[].penalty.late.minute

number

Penalty for each minute of lateness for every visit of the depot after the end of the time window.

Default value: 17.

depots[].penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depots[].penalty.out_of_time.fixed

number

Fixed penalty applied if the depot is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depots[].penalty.out_of_time.minute

number

Penalty for each minute of being outside of the time window of the depot. See the specifications of early and late options for more details in each case.

Default value: 17.

depots[].penalty.package_throughput

object

Penalty components for package throughput exceeding.

depots[].penalty.package_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

depots[].penalty.package_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

depots[].penalty.package_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

depots[].penalty.throughput

object

Penalty components for throughput exceeding.

depots[].penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

depots[].penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

depots[].penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

depots[].penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

depots[].point *

object

WGS84 coordinate of a location. More information

depots[].point.lat *

number

Minimum value: -90.
Maximum value: 90.

depots[].point.lon *

number

Minimum value: -180.
Maximum value: 180.

depots[].preliminary_service_duration_s

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 depot_ready_time of deliveries that are loaded at this vehicle. More information

Minimum value: 0.
Maximum value: 3.1536e+09.

depots[].preset_id

string

Preset number for depot properties.

depots[].ref

string

Location reference.

depots[].service_duration_s

object

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

depots[].service_duration_s.fixed

number

Fixed service duration for any part of the order.

depots[].service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

depots[].throughput

object

Depot throughput limit. More information

depots[].throughput.kg_per_hour

object

depots[].throughput.kg_per_hour.time_window

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[].throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

depots[].throughput.units_per_hour

object

depots[].throughput.units_per_hour.time_window

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[].throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

depots[].throughput.vehicle_count

object

depots[].throughput.vehicle_count.time_window

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[].throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

depots[].time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depots[].time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_loading

object

Time windows when the vehicle is allowed to leave the depot on the 1st run

depots[].time_windows_loading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_loading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depots[].time_windows_loading.penalty

object

depots[].time_windows_loading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depots[].time_windows_loading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depots[].time_windows_loading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depots[].time_windows_loading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depots[].time_windows_loading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depots[].time_windows_loading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depots[].time_windows_loading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depots[].time_windows_loading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depots[].time_windows_loading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depots[].time_windows_loading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_loading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depots[].time_windows_loading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_loading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_refilling

object

Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading

depots[].time_windows_refilling.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_refilling.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depots[].time_windows_refilling.penalty

object

depots[].time_windows_refilling.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depots[].time_windows_refilling.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depots[].time_windows_refilling.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depots[].time_windows_refilling.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depots[].time_windows_refilling.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depots[].time_windows_refilling.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depots[].time_windows_refilling.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depots[].time_windows_refilling.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depots[].time_windows_refilling.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depots[].time_windows_refilling.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_refilling.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depots[].time_windows_refilling.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_refilling.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_unloading

object

Time windows when the vehicle is allowed to return to the depot on the last run

depots[].time_windows_unloading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_unloading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depots[].time_windows_unloading.penalty

object

depots[].time_windows_unloading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depots[].time_windows_unloading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depots[].time_windows_unloading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depots[].time_windows_unloading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depots[].time_windows_unloading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depots[].time_windows_unloading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depots[].time_windows_unloading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depots[].time_windows_unloading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depots[].time_windows_unloading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depots[].time_windows_unloading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_unloading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depots[].time_windows_unloading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_unloading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].title

string

Location title.

depots[].type

string

Defines a type of depot: depot or crossdock.

  • depot — the main depot where orders are stored.
  • crossdock — the additional depot where there are no orders initially. To deliver orders from this depot, another vehicle must first deliver them here from the main depot where they are stored.

Default value: depot.

Allowed values
  1. depot
  2. crossdock

depots[].unload_service_duration_s

number

Additional duration for unloading pickup orders from a vehicle, added only if there is at least one pickup order,delivered in this depot.

Minimum value: 0.

depots[].use_in_proximity

boolean

When false, this depot will be ignored in computation of proximity and global proximity. When true, this depot will be used in computation of proximity and global proximity.If parameter is not defined, this depot will be used in computation of proximity in compatible mode.

initial_routes[]

array

List of routes in old response, which has to be loaded into solver.

initial_routes[].fixed_order

boolean

Locations, specified in initial_routes, cannot be reordered

initial_routes[].immutable

boolean

A route, specified in initial_routes, is used without changes.

initial_routes[].route[] *

array

Sequence of route nodes, comprising a route.

initial_routes[].route[].actual_arrival_time_s

object

Actual arrival time at the location.

initial_routes[].route[].actual_departure_time_s

object

Actual time of departure from the location.

initial_routes[].route[].actual_service_start_time_s

object

Actual time of service start in the location.

initial_routes[].route[].arrival_time_s

object

Arrival time at the location. Arrival happened before the start of the time window, will incur waiting time.

initial_routes[].route[].departure_time_s

object

Time of departure from the location.

initial_routes[].route[].load_to_head[]

array

List of orders that should be loaded to the head of the vehicle at depot or anchor location, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].route[].load_to_trailer[]

array

List of orders that should be loaded to the trailer of the vehicle at depot, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].route[].multi_order

boolean

An order is one of several orders at exactly the same location which are served together. Arrival time is the same for all orders in the group, also the orders share shared_service_duration_s. Total service duration of all orders in multi-order group is computed as: max(shared_service_duration_s) + sum(service_duration_s).

initial_routes[].route[].node *

object

Route component.

initial_routes[].route[].node.type

string

Type of a route component.

Allowed values
  1. depot

initial_routes[].route[].node.value *

object

A representation of a location in initial routes

initial_routes[].route[].node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].route[].node.value.added_shared_service_duration_s

number

Added duration of shared service, for first order in multi-order equals to shared_service_duration_sFor other orders in multi-order maybe non-zero,if shared_service_duration_s of current order is more than shared_service_duration_s of previous orders

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.anchor_mode

string

Default value: Undefined.

Allowed values
  1. Decoupling
  2. Rolling
  3. Coupling
  4. Undefined

initial_routes[].route[].node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].route[].node.value.delivery_deadline

string

Time by which the pickup order without specified delivery_to field should be delivered to any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].route[].node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].route[].node.value.fixed_run

boolean

Order can only be added in the run in which it was planned

initial_routes[].route[].node.value.fixed_shift

boolean

Order can only be added in the shift in which it was planned

initial_routes[].route[].node.value.fixed_vehicle

boolean

Order can only be taken by the vehicle in which it was planned

initial_routes[].route[].node.value.id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.keep_in_vehicle

boolean

When order is dropped it still takes space in the vehicle

initial_routes[].route[].node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].route[].node.value.parking_mode

string

Default value: Undefined.

Allowed values
  1. ParkingBegin
  2. ParkingRefill
  3. ParkingEnd
  4. Undefined

initial_routes[].route[].node.value.parking_type

string

Allowed values
  1. trailer
  2. vehicle

initial_routes[].route[].node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].route[].node.value.pickup_id

object

ID of a pickup corresponding to this delivery.

initial_routes[].route[].node.value.pickup_ids[]

array

List of IDs of pickups corresponding to this delivery.

One Of:

initial_routes[].route[].node.value.service_waiting_duration_s

number

Duration of waiting for service at a location. It can be non-zero when, for example, an order is a part of a multi-order, in this case waiting duration includes duration of service of the other orders from the multi-order.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.split_info

object

Information about split part of the order (in case if the order was split)

initial_routes[].route[].node.value.split_info.order_ratio

number

Order ratio, included in this part.

initial_routes[].route[].node.value.split_info.part_id

integer

Number of this part of the order.

initial_routes[].route[].node.value.split_info.parts_count

integer

Number of parts, in which the order was split.

initial_routes[].route[].node.value.split_info.units

number

Size of this part in custom units (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.split_info.volume_cbm

number

Volume of this part, cubic meters (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.split_info.weight_kg

number

Weight of this part, kilograms (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.total_service_duration_s

number

Total duration of service at a location, it includes service_duration_s, added_shared_service_duration_s` parking_service_duration_sandservice_waiting_duration_s`.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.trailer_decoupled

boolean

initial_routes[].route[].node.value.trailer_used

boolean

initial_routes[].route[].node.value.undroppable

boolean

Location cannot be dropped

initial_routes[].route[].node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of missing required tags.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • REQUIRED_TAGS_VIOLATION - the vehicle doesn't have required tags.
Allowed values
  1. REQUIRED_TAGS_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of present excluded tags.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • EXCLUDED_TAGS_VIOLATION - the order has the vehicle's excluded tags.
Allowed values
  1. EXCLUDED_TAGS_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile load type pairs

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[] *

array

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[].other_type *

string

Load type of the incompatible order.

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[].self_type *

string

Load type of the current order.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_LOAD_TYPES_VIOLATION - the order is incompatible with other order in run by load types.
Allowed values
  1. INCOMPATIBLE_LOAD_TYPES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile zone pairs

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[] *

array

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[].other_zone *

string

Load type of the incompatible order.

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[].self_zone *

string

Load type of the current order.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_ZONES_VIOLATION - the order is incompatible with other order in run by zones.
Allowed values
  1. INCOMPATIBLE_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of vehicle's allowed zones.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • ALLOWED_ZONES_VIOLATION - location doesn't belong to any of vehicle's allowed zones.
Allowed values
  1. ALLOWED_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of present forbidden zones.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FORBIDDEN_ZONES_VIOLATION - location belongs to some of the vehicle's forbidden zones.
Allowed values
  1. FORBIDDEN_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].route[].node.value.zones[]

array

List of zones.

initial_routes[].route[].node.type

string

Type of a route component.

Allowed values
  1. location

initial_routes[].route[].node.value *

object

A representation of a location in initial routes

initial_routes[].route[].node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].route[].node.value.added_shared_service_duration_s

number

Added duration of shared service, for first order in multi-order equals to shared_service_duration_sFor other orders in multi-order maybe non-zero,if shared_service_duration_s of current order is more than shared_service_duration_s of previous orders

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.anchor_mode

string

Default value: Undefined.

Allowed values
  1. Decoupling
  2. Rolling
  3. Coupling
  4. Undefined

initial_routes[].route[].node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].route[].node.value.delivery_deadline

string

Time by which the pickup order without specified delivery_to field should be delivered to any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].route[].node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].route[].node.value.fixed_run

boolean

Order can only be added in the run in which it was planned

initial_routes[].route[].node.value.fixed_shift

boolean

Order can only be added in the shift in which it was planned

initial_routes[].route[].node.value.fixed_vehicle

boolean

Order can only be taken by the vehicle in which it was planned

initial_routes[].route[].node.value.id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.keep_in_vehicle

boolean

When order is dropped it still takes space in the vehicle

initial_routes[].route[].node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].route[].node.value.parking_mode

string

Default value: Undefined.

Allowed values
  1. ParkingBegin
  2. ParkingRefill
  3. ParkingEnd
  4. Undefined

initial_routes[].route[].node.value.parking_type

string

Allowed values
  1. trailer
  2. vehicle

initial_routes[].route[].node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].route[].node.value.pickup_id

object

ID of a pickup corresponding to this delivery.

initial_routes[].route[].node.value.pickup_ids[]

array

List of IDs of pickups corresponding to this delivery.

One Of:

initial_routes[].route[].node.value.service_waiting_duration_s

number

Duration of waiting for service at a location. It can be non-zero when, for example, an order is a part of a multi-order, in this case waiting duration includes duration of service of the other orders from the multi-order.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.split_info

object

Information about split part of the order (in case if the order was split)

initial_routes[].route[].node.value.split_info.order_ratio

number

Order ratio, included in this part.

initial_routes[].route[].node.value.split_info.part_id

integer

Number of this part of the order.

initial_routes[].route[].node.value.split_info.parts_count

integer

Number of parts, in which the order was split.

initial_routes[].route[].node.value.split_info.units

number

Size of this part in custom units (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.split_info.volume_cbm

number

Volume of this part, cubic meters (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.split_info.weight_kg

number

Weight of this part, kilograms (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.total_service_duration_s

number

Total duration of service at a location, it includes service_duration_s, added_shared_service_duration_s` parking_service_duration_sandservice_waiting_duration_s`.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.trailer_decoupled

boolean

initial_routes[].route[].node.value.trailer_used

boolean

initial_routes[].route[].node.value.undroppable

boolean

Location cannot be dropped

initial_routes[].route[].node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of missing required tags.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • REQUIRED_TAGS_VIOLATION - the vehicle doesn't have required tags.
Allowed values
  1. REQUIRED_TAGS_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of present excluded tags.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • EXCLUDED_TAGS_VIOLATION - the order has the vehicle's excluded tags.
Allowed values
  1. EXCLUDED_TAGS_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile load type pairs

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[] *

array

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[].other_type *

string

Load type of the incompatible order.

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[].self_type *

string

Load type of the current order.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_LOAD_TYPES_VIOLATION - the order is incompatible with other order in run by load types.
Allowed values
  1. INCOMPATIBLE_LOAD_TYPES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile zone pairs

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[] *

array

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[].other_zone *

string

Load type of the incompatible order.

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[].self_zone *

string

Load type of the current order.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_ZONES_VIOLATION - the order is incompatible with other order in run by zones.
Allowed values
  1. INCOMPATIBLE_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of vehicle's allowed zones.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • ALLOWED_ZONES_VIOLATION - location doesn't belong to any of vehicle's allowed zones.
Allowed values
  1. ALLOWED_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of present forbidden zones.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FORBIDDEN_ZONES_VIOLATION - location belongs to some of the vehicle's forbidden zones.
Allowed values
  1. FORBIDDEN_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].route[].node.value.zones[]

array

List of zones.

initial_routes[].route[].node.type

string

Type of a route component.

Allowed values
  1. break

initial_routes[].route[].node.value *

object

A representation of a work break in initial routes

initial_routes[].route[].node.value.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

initial_routes[].route[].node.value.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

initial_routes[].route[].node.value.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

initial_routes[].route[].node.value.chain_number

integer

Sequential number of a work break chain to which the break belongs.

initial_routes[].route[].node.value.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.value.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.value.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].route[].node.value.fixed_run

boolean

Order can only be added in the run in which it was planned

initial_routes[].route[].node.value.fixed_shift

boolean

Order can only be added in the shift in which it was planned

initial_routes[].route[].node.value.fixed_vehicle

boolean

Order can only be taken by the vehicle in which it was planned

initial_routes[].route[].node.value.keep_in_vehicle

boolean

When order is dropped it still takes space in the vehicle

initial_routes[].route[].node.value.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

initial_routes[].route[].node.value.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.repeatable

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.

initial_routes[].route[].node.value.rest_duration_s

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.value.undroppable

boolean

Location cannot be dropped

initial_routes[].route[].node.value.work_duration_s

number

Duration of continuous work before the break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.value.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.type

string

Type of a route component.

Allowed values
  1. courier

initial_routes[].route[].node.value *

object

initial_routes[].route[].node.value.location_id *

string

Id of current location

initial_routes[].route[].node.value.passed_time_s

number

Time passed after courier leave current location. Consider that courier has not yet arrived to the next location.

initial_routes[].route[].waiting_duration_s

number

Waiting duration, time spent at location after arrival and before the start of the time window, seconds.

initial_routes[].shift

object

initial_routes[].shift.balanced_group_id

string

ID of a corresponding balanced group of routes (see the option balanced_groups).

initial_routes[].shift.end

object

Route node, contains information about a visited location or a work break, transit information and arrival time.

initial_routes[].shift.end.actual_arrival_time_s

number

Actual arrival time at the location.

initial_routes[].shift.end.actual_departure_time_s

number

Actual time of departure from the location.

initial_routes[].shift.end.actual_service_start_time_s

number

Actual time of service start in the location.

initial_routes[].shift.end.actual_waiting_duration_s

number

Waiting duration, time spent at location after arrival and before the start of the time window, seconds.

initial_routes[].shift.end.arrival_time_s *

number

Arrival time at the location. Arrival happened before the start of the time window, will incur waiting time.

initial_routes[].shift.end.departure_time_s

number

Time of departure from the location.

initial_routes[].shift.end.failed_time_window

object

initial_routes[].shift.end.failed_time_window.duration_s *

number

When a location is visited outside of the time window, indicates the duration (in seconds) between the reference time and the closest endpoint of the failed time window. The reference time is the start or the end of service depending on penalize_late_service.

initial_routes[].shift.end.failed_time_window.how *

string

When a location is visited outside of the time window, indicates the time direction between the arrival time and the failed time window:

  • EARLY - arrival and service start are before the start of the time window;
  • LATE - arrival or service finish (depending on penalize_late_service) is after the end of the time window.
Allowed values
  1. EARLY
  2. LATE

initial_routes[].shift.end.load_to_head[]

array

List of orders that should be loaded to the head of the vehicle at depot or anchor location, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].shift.end.load_to_trailer[]

array

List of orders that should be loaded to the trailer of the vehicle at depot, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].shift.end.multi_order

boolean

An order is one of several orders at exactly the same location which are served together. Arrival time is the same for all orders in the group, also the orders share shared_service_duration_s. Total service duration of all orders in multi-order group is computed as: max(shared_service_duration_s) + sum(service_duration_s).

initial_routes[].shift.end.node *

object

Route component.

initial_routes[].shift.end.node.type *

string

Type of a route component.

Allowed values
  1. depot

initial_routes[].shift.end.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.end.node.value *

object

Description of a location.

initial_routes[].shift.end.node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].shift.end.node.value.address

string

Address of the location.

initial_routes[].shift.end.node.value.crossdock_safety_waiting_duration_s

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: 0.
Maximum value: 3.1536e+09.
Default value: 3600.

initial_routes[].shift.end.node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].shift.end.node.value.description

string

Location description.

initial_routes[].shift.end.node.value.finish_service_duration_s

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: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.end.node.value.flexible_start_time

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
Also when flexible_start_time option is used, the solver can generate routes where arrival time is very close to end of the time window. It is often undesired route plans, because there is a risk of being late on such locations. An option minimize_lateness_risk and/or penalize_late_service is recommended to be used together with flexible_start_time to avoid such routes.

initial_routes[].shift.end.node.value.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.hard_window

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

initial_routes[].shift.end.node.value.id *

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

initial_routes[].shift.end.node.value.load_service_duration_s

number

Additional duration for loading delivery orders into a vehicle, added only if there is at least one delivery order,loaded in this depot.

Minimum value: 0.

initial_routes[].shift.end.node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].shift.end.node.value.package_throughput

object

Restriction on packaging speed in depot.

initial_routes[].shift.end.node.value.package_throughput.kg_per_hour

object

initial_routes[].shift.end.node.value.package_throughput.kg_per_hour.time_window

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.

initial_routes[].shift.end.node.value.package_throughput.kg_per_hour.value

number

Depot package throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.package_throughput.units_per_hour

object

initial_routes[].shift.end.node.value.package_throughput.units_per_hour.time_window

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.

initial_routes[].shift.end.node.value.package_throughput.units_per_hour.value

number

Depot package throughput, units per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.penalty

object

Penalties for depot time window or throughput failure. More information

initial_routes[].shift.end.node.value.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.end.node.value.penalty.early.fixed

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: 1000.

initial_routes[].shift.end.node.value.penalty.early.minute

number

Penalty for each minute of early service of the depot. Applied in the same cases as the fixed penalty.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.end.node.value.penalty.late.fixed

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: 1000.

initial_routes[].shift.end.node.value.penalty.late.minute

number

Penalty for each minute of lateness for every visit of the depot after the end of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.end.node.value.penalty.out_of_time.fixed

number

Fixed penalty applied if the depot is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.out_of_time.minute

number

Penalty for each minute of being outside of the time window of the depot. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.package_throughput

object

Penalty components for package throughput exceeding.

initial_routes[].shift.end.node.value.penalty.package_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.package_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.end.node.value.penalty.package_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.end.node.value.penalty.throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.end.node.value.penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.end.node.value.penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.end.node.value.penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.end.node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].shift.end.node.value.point

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.value.point.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.value.point.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.value.preliminary_service_duration_s

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 depot_ready_time of deliveries that are loaded at this vehicle. More information

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.preset_id

string

Preset number for depot properties.

initial_routes[].shift.end.node.value.ref

string

Location reference.

initial_routes[].shift.end.node.value.routing_mode

string

The transportation method used to reach this location.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

initial_routes[].shift.end.node.value.service_duration_s

object

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

initial_routes[].shift.end.node.value.service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.throughput

object

Depot throughput limit. More information

initial_routes[].shift.end.node.value.throughput.kg_per_hour

object

initial_routes[].shift.end.node.value.throughput.kg_per_hour.time_window

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.

initial_routes[].shift.end.node.value.throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.throughput.units_per_hour

object

initial_routes[].shift.end.node.value.throughput.units_per_hour.time_window

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.

initial_routes[].shift.end.node.value.throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.throughput.vehicle_count

object

initial_routes[].shift.end.node.value.throughput.vehicle_count.time_window

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.

initial_routes[].shift.end.node.value.throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.end.node.value.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_loading

object

Time windows when the vehicle is allowed to leave the depot on the 1st run

initial_routes[].shift.end.node.value.time_windows_loading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_loading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.end.node.value.time_windows_loading.penalty

object

initial_routes[].shift.end.node.value.time_windows_loading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.end.node.value.time_windows_loading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_loading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_loading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.end.node.value.time_windows_loading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_loading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_refilling

object

Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading

initial_routes[].shift.end.node.value.time_windows_refilling.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_refilling.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty

object

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_refilling.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_refilling.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.end.node.value.time_windows_refilling.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_refilling.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_unloading

object

Time windows when the vehicle is allowed to return to the depot on the last run

initial_routes[].shift.end.node.value.time_windows_unloading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_unloading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty

object

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_unloading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_unloading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.end.node.value.time_windows_unloading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_unloading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.title

string

Location title.

initial_routes[].shift.end.node.value.total_service_duration_s

number

Total duration of service at a depot (equals to service_duration_s).

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.trailer_decoupled

boolean

initial_routes[].shift.end.node.value.trailer_used

boolean

initial_routes[].shift.end.node.value.type

string

Defines a type of depot: depot or crossdock.

  • depot — the main depot where orders are stored.
  • crossdock — the additional depot where there are no orders initially. To deliver orders from this depot, another vehicle must first deliver them here from the main depot where they are stored.

Default value: depot.

Allowed values
  1. depot
  2. crossdock

initial_routes[].shift.end.node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].shift.end.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.end.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.end.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.end.node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].shift.end.node.value.unload_service_duration_s

number

Additional duration for unloading pickup orders from a vehicle, added only if there is at least one pickup order,delivered in this depot.

Minimum value: 0.

initial_routes[].shift.end.node.value.use_in_proximity

boolean

When false, this depot will be ignored in computation of proximity and global proximity. When true, this depot will be used in computation of proximity and global proximity.If parameter is not defined, this depot will be used in computation of proximity in compatible mode.

initial_routes[].shift.end.node.type *

string

Type of a route component.

Allowed values
  1. location

initial_routes[].shift.end.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.end.node.value *

object

Description of a location.

initial_routes[].shift.end.node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].shift.end.node.value.added_shared_service_duration_s

number

Added duration of shared service, for first order in multi-order equals to shared_service_duration_sFor other orders in multi-order maybe non-zero,if shared_service_duration_s of current order is more than shared_service_duration_s of previous orders

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.address

string

Address of the location.

initial_routes[].shift.end.node.value.allow_trailers

boolean

When true, vehicles with trailers can arrive at this location. Otherwise, they will have to leave the trailer at an anchor location beforehand. [More information](https://yandex.ru/routing/doc/vrp/concepts/properties-of-vehicles.html?lang=en#coupling

initial_routes[].shift.end.node.value.anchor_mode

string

Default value: Undefined.

Allowed values
  1. Decoupling
  2. Rolling
  3. Coupling
  4. Undefined

initial_routes[].shift.end.node.value.can_be_merged

boolean

An order can be a part of multiorder

Default value: true.

initial_routes[].shift.end.node.value.can_be_split

boolean

An order can be split into parts between different vehicles.

initial_routes[].shift.end.node.value.client_id

object

Defines id of a client corresponding to the location.

initial_routes[].shift.end.node.value.client_service_duration_s

object

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.

initial_routes[].shift.end.node.value.client_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.client_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.comments

string

Comments.

initial_routes[].shift.end.node.value.crossdock_mode

string

Defines whether it is allowed to deliver this order through a cross-dock depot.

  • deny — prohibited, can only be delivered from a regular depot;
  • allow — allowed, can be delivered either directly from a regular depot or through a cross-dock depot;
  • mandatory — required, can only be delivered through a cross-dock depot.

Default value: allow.

Allowed values
  1. deny
  2. allow
  3. mandatory

initial_routes[].shift.end.node.value.crossdock_service_duration_s

object

Time spent at a crossdock location during the unloading of this order. More information

initial_routes[].shift.end.node.value.crossdock_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.crossdock_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.custom_value

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.

initial_routes[].shift.end.node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].shift.end.node.value.delivery_deadline

string

Time by which the pickup order without specified delivery_to field should be delivered to any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.end.node.value.delivery_to

object

Defines id of a location where to deliver the shipment.More information

initial_routes[].shift.end.node.value.delivery_to_any[]

array

A list of drop_off location ID's, the pickup location must be delivered to any of these locations. More information

One Of:

initial_routes[].shift.end.node.value.depot_duration_s

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

initial_routes[].shift.end.node.value.depot_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.depot_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

initial_routes[].shift.end.node.value.depot_id

object

initial_routes[].shift.end.node.value.depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.end.node.value.description

string

Location description.

initial_routes[].shift.end.node.value.drop_reason

string

Explanation why the location was dropped.

initial_routes[].shift.end.node.value.dropped_ratio

number

Order ratio which have to stay in drop

Minimum value: 0.
Maximum value: 1.

initial_routes[].shift.end.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.end.node.value.fixed_run

boolean

Order can only be added in the run in which it was planned

initial_routes[].shift.end.node.value.fixed_shift

boolean

Order can only be added in the shift in which it was planned

initial_routes[].shift.end.node.value.fixed_vehicle

boolean

Order can only be taken by the vehicle in which it was planned

initial_routes[].shift.end.node.value.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.hard_window

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 dropped_orders field in the response. This field is useful to model orders that cannot be completed within the time window, (e.g. due to conflicts with other orders). More information

initial_routes[].shift.end.node.value.id *

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

initial_routes[].shift.end.node.value.in_lifo_order

boolean

Orders with this field set to true are not allowed to move inside the vehicle and should be delivered in the reversed order of their pickups. Locations with this field set to false can appear anywhere in the route. This field only matters if both pickups and deliveries are present in route. More information

initial_routes[].shift.end.node.value.keep_in_vehicle

boolean

When order is dropped it still takes space in the vehicle

initial_routes[].shift.end.node.value.load_types[]

array

Defines types of location load.
mustnt be defined only for garage` location type.

initial_routes[].shift.end.node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].shift.end.node.value.max_split_parts

integer

Maximal number of parts in which the order can be split

Minimum value: 1.
Default value: 10.

initial_routes[].shift.end.node.value.max_total_vehicles

integer

Maximal number of vehicles that can be served by an anchor location. Unlimited by default. More information

initial_routes[].shift.end.node.value.may_drop_in_crossdock

boolean

May drop pickup order in crossdock location

Default value: true.

initial_routes[].shift.end.node.value.optional_tags[]

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

initial_routes[].shift.end.node.value.optional_tags[].tag *

string

An arbitrary tag.

initial_routes[].shift.end.node.value.optional_tags[].value *

number

Value of the tag. When location is served by a vehicle with a matching tag in tags field, this value is subtracted from the route cost. When the matching tag is in excluded_tags field, this value is added to the route cost.

initial_routes[].shift.end.node.value.parking_mode

string

Type of the parking node

Allowed values
  1. ParkingBegin
  2. ParkingRefill
  3. ParkingEnd

initial_routes[].shift.end.node.value.parking_service_duration_s

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.parking_type

string

Allowed values
  1. trailer
  2. vehicle

initial_routes[].shift.end.node.value.penalty

object

Penalties for non-completion and time window failure. More information

initial_routes[].shift.end.node.value.penalty.delivery_deadline

object

Penalty components for late deliveries from pickup locations to depots. Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option. More information

initial_routes[].shift.end.node.value.penalty.delivery_deadline.fixed

number

Fixed penalty applied if the depot is visited after the deadline.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.delivery_deadline.minute

number

Penalty for each minute of lateness, when the depot is visited after the deadline.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.depot_expiring_time

object

Penalty components for violation soft_depot_expiring_time restriction.

initial_routes[].shift.end.node.value.penalty.depot_expiring_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.end.node.value.penalty.depot_expiring_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.end.node.value.penalty.depot_ready_time

object

Penalty components for violation soft_depot_ready_time restriction.

initial_routes[].shift.end.node.value.penalty.depot_ready_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.end.node.value.penalty.depot_ready_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.end.node.value.penalty.drop

object

Penalty for not delivering an order. More information

initial_routes[].shift.end.node.value.penalty.drop.fixed

number

Fixed penalty for not delivering any part of the order.

initial_routes[].shift.end.node.value.penalty.drop.scaled

number

Penalty for not delivering order ratio.

Default value: 1e+06.

initial_routes[].shift.end.node.value.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.end.node.value.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.end.node.value.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.end.node.value.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.rolling_throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.end.node.value.penalty.rolling_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.rolling_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.end.node.value.penalty.rolling_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.end.node.value.penalty.rolling_throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.end.node.value.penalty.throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.end.node.value.penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.end.node.value.penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.end.node.value.penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.end.node.value.penalty.time_between_visits

object

Penalty components for exceeding max_time_between_visits_s restriction.

initial_routes[].shift.end.node.value.penalty.time_between_visits.fixed

number

Penalty for each case of violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.end.node.value.penalty.time_between_visits.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.end.node.value.penalty.transit_time

object

Penalty components for exceeding transit time

initial_routes[].shift.end.node.value.penalty.transit_time.fixed

object

Fixed penalty applied if the order was delivered with a violation of the soft transit time limit

initial_routes[].shift.end.node.value.penalty.transit_time.minute

object

Penalty for each minute transit time violation

initial_routes[].shift.end.node.value.phone

string

Phone number of delivery receiver.

initial_routes[].shift.end.node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].shift.end.node.value.pickup_from_any

boolean

Delivery-orders that have this field set to true must have multiple pickup orders associated with it. Any one of these pickup orders can be selected for delivery, and the rest will be ignored. The choice among the options is based on optimizing the cost of the route. More information

initial_routes[].shift.end.node.value.pickup_id

object

ID of a pickup corresponding to this delivery.

initial_routes[].shift.end.node.value.pickup_ids[]

array

List of IDs of pickups corresponding to this delivery.

One Of:

initial_routes[].shift.end.node.value.pickup_must_reach_depot

boolean

The field determines whether the pickup is considered serviced if it is not delivered depot. The field shouldnt be defined for types other than pickup. The field is mutually exclusive with fields delivery_to and delivery_to_any. If depot_id is defined and not empty then the field is considered as True and the value to False in not acceptable.

initial_routes[].shift.end.node.value.point

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.value.point.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.value.point.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.value.preset_id

string

Preset number for location properties.

initial_routes[].shift.end.node.value.quant

object

initial_routes[].shift.end.node.value.quant.units

number

Size of shipment in custom units.

Minimum value: 0.

initial_routes[].shift.end.node.value.quant.volume_cbm

number

Volume of minimal part, cubic meters.

Minimum value: 0.

initial_routes[].shift.end.node.value.quant.weight_kg

number

Weight of minimal part, kilograms.

Minimum value: 0.

initial_routes[].shift.end.node.value.ref

string

Location reference.

initial_routes[].shift.end.node.value.required_tags[]

array

List of tags a vehicle must have to arrive at the location. More information

initial_routes[].shift.end.node.value.rolling_throughput

object

Rolling throughput limit (supported for anchors).

initial_routes[].shift.end.node.value.rolling_throughput.kg_per_hour

object

initial_routes[].shift.end.node.value.rolling_throughput.kg_per_hour.time_window

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.

initial_routes[].shift.end.node.value.rolling_throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.rolling_throughput.units_per_hour

object

initial_routes[].shift.end.node.value.rolling_throughput.units_per_hour.time_window

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.

initial_routes[].shift.end.node.value.rolling_throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.rolling_throughput.vehicle_count

object

initial_routes[].shift.end.node.value.rolling_throughput.vehicle_count.time_window

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.

initial_routes[].shift.end.node.value.rolling_throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.routing_mode

string

The transportation method used to reach this location.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

initial_routes[].shift.end.node.value.sequence_order

integer

All locations in vehicle route with specified sequence_order option have to be visited in non-decreasing order of its values. More information

initial_routes[].shift.end.node.value.service_duration_s

object

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

initial_routes[].shift.end.node.value.service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_durations

object

Structure storing location service durations.

initial_routes[].shift.end.node.value.service_durations.client

object

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.

initial_routes[].shift.end.node.value.service_durations.client.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_durations.client.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_durations.crossdock

object

Time spent at a crossdock location during the unloading of this order. More information

initial_routes[].shift.end.node.value.service_durations.crossdock.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_durations.crossdock.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_durations.depot

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

initial_routes[].shift.end.node.value.service_durations.depot.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_durations.depot.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_durations.location

object

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

initial_routes[].shift.end.node.value.service_durations.location.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_durations.location.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_durations.parking

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.service_durations.stop

object

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

initial_routes[].shift.end.node.value.service_durations.stop.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_durations.stop.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_waiting_duration_s

number

Duration of waiting for service at a location. It can be non-zero when, for example, an order is a part of a multi-order, in this case waiting duration includes duration of service of the other orders from the multi-order.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.shared_service_duration_s

object

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

initial_routes[].shift.end.node.value.shared_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.shared_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.shared_with_company_ids[]

array

IDs of the companies that can access the order information.

initial_routes[].shift.end.node.value.shipment_size

object

Shipment size (dimensions and/or weight). More information

initial_routes[].shift.end.node.value.shipment_size.custom

object

Size of shipment in custom units. Sizes in custom units are defined in format "name": size, where name is a string denoting the name of a unit, and size is a non-negative floating-point number denoting the quantity of the corresponding unit in the shipment. If the name of a unit is present in other objects (locations/vehicles/trailers), but not this, it is assumed that the quantity of this unit in the shipment is zero. More information

initial_routes[].shift.end.node.value.shipment_size.units

number

Size of shipment in custom units.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.shipment_size.volume

object

Shipment dimensions and type.

initial_routes[].shift.end.node.value.shipment_size.volume.align

string

Defines allowed container alignment for rigid and fixed_bottom types (ignored for bulk containers):

  • all_axes — default, all axes of the box must be parallel to vehicle's axes;
  • height — the bottom of the box lies on a horizontal surface, but any rotation around the vertical axis (height) is allowed (note that any side can become a bottom for rigid containers).
    More information

Default value: all_axes.

Allowed values
  1. all_axes
  2. height

initial_routes[].shift.end.node.value.shipment_size.volume.depth_m *

number

Depth, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.end.node.value.shipment_size.volume.height_m *

number

Height, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.end.node.value.shipment_size.volume.type

string

Container type:

  • bulk — default type, shape can be changed arbitrary to fit the vehicle;
  • rigid — container is a box that must fit vehicle dimensions under some orientation;
  • fixed_bottom — the bottom of the box must stay the same, but the box can be rotated horizontally (height must fit vehicle's height).
    More information

Default value: bulk.

Allowed values
  1. bulk
  2. rigid
  3. fixed_bottom

initial_routes[].shift.end.node.value.shipment_size.volume.width_m *

number

Width, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.end.node.value.shipment_size.volume_cbm

number

Explicit volume, cubic meters. By default, the value is taken from "volume", if nothing is specified here.

Minimum value: 0.

initial_routes[].shift.end.node.value.shipment_size.weight_kg

number

Weight of shipment, kilograms.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.soft_depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

initial_routes[].shift.end.node.value.soft_depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.end.node.value.split_info

object

Information about split part of the order (in case if the order was split)

initial_routes[].shift.end.node.value.split_info.order_ratio

number

Order ratio, included in this part.

initial_routes[].shift.end.node.value.split_info.part_id

integer

Number of this part of the order.

initial_routes[].shift.end.node.value.split_info.parts_count

integer

Number of parts, in which the order was split.

initial_routes[].shift.end.node.value.split_info.units

number

Size of this part in custom units (in case there was corresponding quant specified for this order).

initial_routes[].shift.end.node.value.split_info.volume_cbm

number

Volume of this part, cubic meters (in case there was corresponding quant specified for this order).

initial_routes[].shift.end.node.value.split_info.weight_kg

number

Weight of this part, kilograms (in case there was corresponding quant specified for this order).

initial_routes[].shift.end.node.value.split_parts_must_fill_whole_vehicle

boolean

Parts, split from a splittable order, should fill the whole vehicle.

initial_routes[].shift.end.node.value.throughput

object

Location throughput limit (supported for the orders which can be split).

initial_routes[].shift.end.node.value.throughput.kg_per_hour

object

initial_routes[].shift.end.node.value.throughput.kg_per_hour.time_window

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.

initial_routes[].shift.end.node.value.throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.throughput.units_per_hour

object

initial_routes[].shift.end.node.value.throughput.units_per_hour.time_window

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.

initial_routes[].shift.end.node.value.throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.throughput.vehicle_count

object

initial_routes[].shift.end.node.value.throughput.vehicle_count.time_window

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.

initial_routes[].shift.end.node.value.throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.end.node.value.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.title

string

Location title.

initial_routes[].shift.end.node.value.total_service_duration_s

number

Total duration of service at a location, it includes service_duration_s, added_shared_service_duration_s` parking_service_duration_sandservice_waiting_duration_s`.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.trailer_decoupled

boolean

initial_routes[].shift.end.node.value.trailer_used

boolean

initial_routes[].shift.end.node.value.transit_time

object

Restrictions on the time the order spends inside a vehicle

initial_routes[].shift.end.node.value.transit_time.hard_limit_s

number

Hard time limit, values above it are unacceptable

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.transit_time.limit_s

number

Soft time limit, values above it are acceptable but they will be penalized

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.type

string

Defines a type of service at the location: delivery, pickup, drop_off or garage.

  • delivery — the load is picked up at the depot or at another location, and delivered to this location;
  • pickup — the load is picked up at this location, and delivered to another location (if delivery_to is specified), or to the depot;
  • drop_off — a pickup location may be delivered to any of related drop_off locations (see delivery_to_any`);
  • garage — a location which can be used as the first or the last vehicle location via start_at or finish_at vehicle option;
  • anchor — a location where trailers can be dropped and unloaded;
  • parking — a location where trailers can be dropped to serve a single other location. Trailers can not be unloaded there.
  • rest_place — a designated location where a vehicle can break work in cases when the work_break has the attribute "at_rest_place".
    More information

Default value: delivery.

Allowed values
  1. depot
  2. crossdock
  3. delivery
  4. pickup
  5. drop_off
  6. garage
  7. anchor
  8. parking
  9. rest_place

initial_routes[].shift.end.node.value.undroppable

boolean

Location cannot be dropped

initial_routes[].shift.end.node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].shift.end.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.end.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.end.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.end.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.end.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.end.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.end.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.end.node.value.unfeasible_reasons[].tags[] *

array

List of missing required tags.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • REQUIRED_TAGS_VIOLATION - the vehicle doesn't have required tags.
Allowed values
  1. REQUIRED_TAGS_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].tags[] *

array

List of present excluded tags.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • EXCLUDED_TAGS_VIOLATION - the order has the vehicle's excluded tags.
Allowed values
  1. EXCLUDED_TAGS_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile load type pairs

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].types[] *

array

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].types[].other_type *

string

Load type of the incompatible order.

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].types[].self_type *

string

Load type of the current order.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_LOAD_TYPES_VIOLATION - the order is incompatible with other order in run by load types.
Allowed values
  1. INCOMPATIBLE_LOAD_TYPES_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile zone pairs

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].zones[] *

array

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].zones[].other_zone *

string

Load type of the incompatible order.

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].zones[].self_zone *

string

Load type of the current order.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_ZONES_VIOLATION - the order is incompatible with other order in run by zones.
Allowed values
  1. INCOMPATIBLE_ZONES_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].tags[] *

array

List of vehicle's allowed zones.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • ALLOWED_ZONES_VIOLATION - location doesn't belong to any of vehicle's allowed zones.
Allowed values
  1. ALLOWED_ZONES_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].tags[] *

array

List of present forbidden zones.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FORBIDDEN_ZONES_VIOLATION - location belongs to some of the vehicle's forbidden zones.
Allowed values
  1. FORBIDDEN_ZONES_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].shift.end.node.value.use_in_proximity

boolean

When false, this location will be ignored in computation of proximity and global proximity. More information

Default value: true.

initial_routes[].shift.end.node.type *

string

Type of a route component.

Allowed values
  1. break

initial_routes[].shift.end.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.end.node.value *

object

Description of a work break.

initial_routes[].shift.end.node.value.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

initial_routes[].shift.end.node.value.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

initial_routes[].shift.end.node.value.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

initial_routes[].shift.end.node.value.chain_number

integer

Sequential number of a work break chain to which the break belongs.

initial_routes[].shift.end.node.value.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.value.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.value.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.end.node.value.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

initial_routes[].shift.end.node.value.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.penalty

object

Penalties applied for violations of work break conditions.

initial_routes[].shift.end.node.value.penalty.early

object

Penalty components for early work break.

initial_routes[].shift.end.node.value.penalty.early.fixed

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: 1000.

initial_routes[].shift.end.node.value.penalty.early.minute

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: 17.

initial_routes[].shift.end.node.value.penalty.late

object

Penalty components for late work break.

initial_routes[].shift.end.node.value.penalty.late.fixed

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: 1000.

initial_routes[].shift.end.node.value.penalty.late.minute

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: 17.

initial_routes[].shift.end.node.value.repeatable

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.

initial_routes[].shift.end.node.value.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.value.type

string

Type of work break. Used in merge_with_types field.

initial_routes[].shift.end.node.value.work_duration_s

number

Duration of continuous work before the break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.value.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.type *

string

Type of a route component.

Allowed values
  1. courier

initial_routes[].shift.end.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.end.node.value *

object

initial_routes[].shift.end.node.value.location_id *

string

Id of current location

initial_routes[].shift.end.node.value.passed_time_s

number

Time passed after courier leave current location. Consider that courier has not yet arrived to the next location.

initial_routes[].shift.end.overtime

object

initial_routes[].shift.end.overtime.duration_s *

number

Vehicle shift overtime in seconds.

initial_routes[].shift.end.probably_failed_time_window

object

initial_routes[].shift.end.probably_failed_time_window.duration_s *

number

Expected difference between arrival time and failing time window, seconds.

initial_routes[].shift.end.probably_failed_time_window.high_risk

boolean

When true, it means that probability of being late on location is greater or equal to critical_lateness_risk_probability.

initial_routes[].shift.end.probably_failed_time_window.how *

string

When a location is visited outside of the time window, indicates the time direction between the arrival time and the failed time window:

  • EARLY - arrival and service start are before the start of the time window;
  • LATE - arrival or service finish (depending on penalize_late_service) is after the end of the time window.
Allowed values
  1. EARLY
  2. LATE

initial_routes[].shift.end.probably_failed_time_window.probability *

number

Probability of being outside of the time window, percent.

initial_routes[].shift.end.stop_sequence_number

integer

Sequence number of a stop (among delivery, pickup and drop_off locations)

initial_routes[].shift.end.transit_distance_m *

number

Transit distance to a location, meters. If routing_mode is set to "transit", only pedestrian distance part of the route is considered.

initial_routes[].shift.end.transit_duration_s *

number

Transit time to a location, seconds.

initial_routes[].shift.end.violations[]

array

List of violations.

One Of:

initial_routes[].shift.end.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.end.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.end.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.end.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.end.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.end.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.end.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.end.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.end.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.end.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.end.violations[].high_risk *

boolean

When true, it means that probability of being late on location is greater or equal to critical_lateness_risk_probability.

initial_routes[].shift.end.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.end.violations[].probability *

number

Probability of being late, percent.

initial_routes[].shift.end.violations[].type *

string

Possible reasons:

  • PROBABLY_FAILED_DELIVERY_DEADLINE - depot may be visited after deadline of some pickup with nonzero probability.
Allowed values
  1. FAILED_DELIVERY_DEADLINE
  2. PROBABLY_FAILED_DELIVERY_DEADLINE

initial_routes[].shift.end.waiting_duration_s

number

Waiting duration, time spent at location after arrival and before the start of the time window, seconds.

initial_routes[].shift.id *

string

Unique identifier of a shift.

initial_routes[].shift.start

object

Route node, contains information about a visited location or a work break, transit information and arrival time.

initial_routes[].shift.start.actual_arrival_time_s

number

Actual arrival time at the location.

initial_routes[].shift.start.actual_departure_time_s

number

Actual time of departure from the location.

initial_routes[].shift.start.actual_service_start_time_s

number

Actual time of service start in the location.

initial_routes[].shift.start.actual_waiting_duration_s

number

Waiting duration, time spent at location after arrival and before the start of the time window, seconds.

initial_routes[].shift.start.arrival_time_s *

number

Arrival time at the location. Arrival happened before the start of the time window, will incur waiting time.

initial_routes[].shift.start.departure_time_s

number

Time of departure from the location.

initial_routes[].shift.start.failed_time_window

object

initial_routes[].shift.start.failed_time_window.duration_s *

number

When a location is visited outside of the time window, indicates the duration (in seconds) between the reference time and the closest endpoint of the failed time window. The reference time is the start or the end of service depending on penalize_late_service.

initial_routes[].shift.start.failed_time_window.how *

string

When a location is visited outside of the time window, indicates the time direction between the arrival time and the failed time window:

  • EARLY - arrival and service start are before the start of the time window;
  • LATE - arrival or service finish (depending on penalize_late_service) is after the end of the time window.
Allowed values
  1. EARLY
  2. LATE

initial_routes[].shift.start.load_to_head[]

array

List of orders that should be loaded to the head of the vehicle at depot or anchor location, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].shift.start.load_to_trailer[]

array

List of orders that should be loaded to the trailer of the vehicle at depot, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].shift.start.multi_order

boolean

An order is one of several orders at exactly the same location which are served together. Arrival time is the same for all orders in the group, also the orders share shared_service_duration_s. Total service duration of all orders in multi-order group is computed as: max(shared_service_duration_s) + sum(service_duration_s).

initial_routes[].shift.start.node *

object

Route component.

initial_routes[].shift.start.node.type *

string

Type of a route component.

Allowed values
  1. depot

initial_routes[].shift.start.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.start.node.value *

object

Description of a location.

initial_routes[].shift.start.node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].shift.start.node.value.address

string

Address of the location.

initial_routes[].shift.start.node.value.crossdock_safety_waiting_duration_s

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: 0.
Maximum value: 3.1536e+09.
Default value: 3600.

initial_routes[].shift.start.node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].shift.start.node.value.description

string

Location description.

initial_routes[].shift.start.node.value.finish_service_duration_s

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: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.start.node.value.flexible_start_time

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
Also when flexible_start_time option is used, the solver can generate routes where arrival time is very close to end of the time window. It is often undesired route plans, because there is a risk of being late on such locations. An option minimize_lateness_risk and/or penalize_late_service is recommended to be used together with flexible_start_time to avoid such routes.

initial_routes[].shift.start.node.value.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.hard_window

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

initial_routes[].shift.start.node.value.id *

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

initial_routes[].shift.start.node.value.load_service_duration_s

number

Additional duration for loading delivery orders into a vehicle, added only if there is at least one delivery order,loaded in this depot.

Minimum value: 0.

initial_routes[].shift.start.node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].shift.start.node.value.package_throughput

object

Restriction on packaging speed in depot.

initial_routes[].shift.start.node.value.package_throughput.kg_per_hour

object

initial_routes[].shift.start.node.value.package_throughput.kg_per_hour.time_window

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.

initial_routes[].shift.start.node.value.package_throughput.kg_per_hour.value

number

Depot package throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.package_throughput.units_per_hour

object

initial_routes[].shift.start.node.value.package_throughput.units_per_hour.time_window

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.

initial_routes[].shift.start.node.value.package_throughput.units_per_hour.value

number

Depot package throughput, units per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.penalty

object

Penalties for depot time window or throughput failure. More information

initial_routes[].shift.start.node.value.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.start.node.value.penalty.early.fixed

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: 1000.

initial_routes[].shift.start.node.value.penalty.early.minute

number

Penalty for each minute of early service of the depot. Applied in the same cases as the fixed penalty.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.start.node.value.penalty.late.fixed

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: 1000.

initial_routes[].shift.start.node.value.penalty.late.minute

number

Penalty for each minute of lateness for every visit of the depot after the end of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.start.node.value.penalty.out_of_time.fixed

number

Fixed penalty applied if the depot is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.out_of_time.minute

number

Penalty for each minute of being outside of the time window of the depot. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.package_throughput

object

Penalty components for package throughput exceeding.

initial_routes[].shift.start.node.value.penalty.package_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.package_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.start.node.value.penalty.package_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.start.node.value.penalty.throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.start.node.value.penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.start.node.value.penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.start.node.value.penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.start.node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].shift.start.node.value.point

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.value.point.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.value.point.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.value.preliminary_service_duration_s

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 depot_ready_time of deliveries that are loaded at this vehicle. More information

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.preset_id

string

Preset number for depot properties.

initial_routes[].shift.start.node.value.ref

string

Location reference.

initial_routes[].shift.start.node.value.routing_mode

string

The transportation method used to reach this location.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

initial_routes[].shift.start.node.value.service_duration_s

object

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

initial_routes[].shift.start.node.value.service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.throughput

object

Depot throughput limit. More information

initial_routes[].shift.start.node.value.throughput.kg_per_hour

object

initial_routes[].shift.start.node.value.throughput.kg_per_hour.time_window

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.

initial_routes[].shift.start.node.value.throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.throughput.units_per_hour

object

initial_routes[].shift.start.node.value.throughput.units_per_hour.time_window

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.

initial_routes[].shift.start.node.value.throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.throughput.vehicle_count

object

initial_routes[].shift.start.node.value.throughput.vehicle_count.time_window

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.

initial_routes[].shift.start.node.value.throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.start.node.value.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_loading

object

Time windows when the vehicle is allowed to leave the depot on the 1st run

initial_routes[].shift.start.node.value.time_windows_loading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_loading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.start.node.value.time_windows_loading.penalty

object

initial_routes[].shift.start.node.value.time_windows_loading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.start.node.value.time_windows_loading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_loading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_loading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.start.node.value.time_windows_loading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_loading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_refilling

object

Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading

initial_routes[].shift.start.node.value.time_windows_refilling.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_refilling.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty

object

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_refilling.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_refilling.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.start.node.value.time_windows_refilling.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_refilling.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_unloading

object

Time windows when the vehicle is allowed to return to the depot on the last run

initial_routes[].shift.start.node.value.time_windows_unloading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_unloading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty

object

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_unloading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_unloading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.start.node.value.time_windows_unloading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_unloading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.title

string

Location title.

initial_routes[].shift.start.node.value.total_service_duration_s

number

Total duration of service at a depot (equals to service_duration_s).

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.trailer_decoupled

boolean

initial_routes[].shift.start.node.value.trailer_used

boolean

initial_routes[].shift.start.node.value.type

string

Defines a type of depot: depot or crossdock.

  • depot — the main depot where orders are stored.
  • crossdock — the additional depot where there are no orders initially. To deliver orders from this depot, another vehicle must first deliver them here from the main depot where they are stored.

Default value: depot.

Allowed values
  1. depot
  2. crossdock

initial_routes[].shift.start.node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].shift.start.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.start.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.start.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.start.node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].shift.start.node.value.unload_service_duration_s

number

Additional duration for unloading pickup orders from a vehicle, added only if there is at least one pickup order,delivered in this depot.

Minimum value: 0.

initial_routes[].shift.start.node.value.use_in_proximity

boolean

When false, this depot will be ignored in computation of proximity and global proximity. When true, this depot will be used in computation of proximity and global proximity.If parameter is not defined, this depot will be used in computation of proximity in compatible mode.

initial_routes[].shift.start.node.type *

string

Type of a route component.

Allowed values
  1. location

initial_routes[].shift.start.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.start.node.value *

object

Description of a location.

initial_routes[].shift.start.node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].shift.start.node.value.added_shared_service_duration_s

number

Added duration of shared service, for first order in multi-order equals to shared_service_duration_sFor other orders in multi-order maybe non-zero,if shared_service_duration_s of current order is more than shared_service_duration_s of previous orders

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.address

string

Address of the location.

initial_routes[].shift.start.node.value.allow_trailers

boolean

When true, vehicles with trailers can arrive at this location. Otherwise, they will have to leave the trailer at an anchor location beforehand. [More information](https://yandex.ru/routing/doc/vrp/concepts/properties-of-vehicles.html?lang=en#coupling

initial_routes[].shift.start.node.value.anchor_mode

string

Default value: Undefined.

Allowed values
  1. Decoupling
  2. Rolling
  3. Coupling
  4. Undefined

initial_routes[].shift.start.node.value.can_be_merged

boolean

An order can be a part of multiorder

Default value: true.

initial_routes[].shift.start.node.value.can_be_split

boolean

An order can be split into parts between different vehicles.

initial_routes[].shift.start.node.value.client_id

object

Defines id of a client corresponding to the location.

initial_routes[].shift.start.node.value.client_service_duration_s

object

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.

initial_routes[].shift.start.node.value.client_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.client_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.comments

string

Comments.

initial_routes[].shift.start.node.value.crossdock_mode

string

Defines whether it is allowed to deliver this order through a cross-dock depot.

  • deny — prohibited, can only be delivered from a regular depot;
  • allow — allowed, can be delivered either directly from a regular depot or through a cross-dock depot;
  • mandatory — required, can only be delivered through a cross-dock depot.

Default value: allow.

Allowed values
  1. deny
  2. allow
  3. mandatory

initial_routes[].shift.start.node.value.crossdock_service_duration_s

object

Time spent at a crossdock location during the unloading of this order. More information

initial_routes[].shift.start.node.value.crossdock_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.crossdock_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.custom_value

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.

initial_routes[].shift.start.node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].shift.start.node.value.delivery_deadline

string

Time by which the pickup order without specified delivery_to field should be delivered to any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.start.node.value.delivery_to

object

Defines id of a location where to deliver the shipment.More information

initial_routes[].shift.start.node.value.delivery_to_any[]

array

A list of drop_off location ID's, the pickup location must be delivered to any of these locations. More information

One Of:

initial_routes[].shift.start.node.value.depot_duration_s

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

initial_routes[].shift.start.node.value.depot_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.depot_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

initial_routes[].shift.start.node.value.depot_id

object

initial_routes[].shift.start.node.value.depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.start.node.value.description

string

Location description.

initial_routes[].shift.start.node.value.drop_reason

string

Explanation why the location was dropped.

initial_routes[].shift.start.node.value.dropped_ratio

number

Order ratio which have to stay in drop

Minimum value: 0.
Maximum value: 1.

initial_routes[].shift.start.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.start.node.value.fixed_run

boolean

Order can only be added in the run in which it was planned

initial_routes[].shift.start.node.value.fixed_shift

boolean

Order can only be added in the shift in which it was planned

initial_routes[].shift.start.node.value.fixed_vehicle

boolean

Order can only be taken by the vehicle in which it was planned

initial_routes[].shift.start.node.value.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.hard_window

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 dropped_orders field in the response. This field is useful to model orders that cannot be completed within the time window, (e.g. due to conflicts with other orders). More information

initial_routes[].shift.start.node.value.id *

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

initial_routes[].shift.start.node.value.in_lifo_order

boolean

Orders with this field set to true are not allowed to move inside the vehicle and should be delivered in the reversed order of their pickups. Locations with this field set to false can appear anywhere in the route. This field only matters if both pickups and deliveries are present in route. More information

initial_routes[].shift.start.node.value.keep_in_vehicle

boolean

When order is dropped it still takes space in the vehicle

initial_routes[].shift.start.node.value.load_types[]

array

Defines types of location load.
mustnt be defined only for garage` location type.

initial_routes[].shift.start.node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].shift.start.node.value.max_split_parts

integer

Maximal number of parts in which the order can be split

Minimum value: 1.
Default value: 10.

initial_routes[].shift.start.node.value.max_total_vehicles

integer

Maximal number of vehicles that can be served by an anchor location. Unlimited by default. More information

initial_routes[].shift.start.node.value.may_drop_in_crossdock

boolean

May drop pickup order in crossdock location

Default value: true.

initial_routes[].shift.start.node.value.optional_tags[]

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

initial_routes[].shift.start.node.value.optional_tags[].tag *

string

An arbitrary tag.

initial_routes[].shift.start.node.value.optional_tags[].value *

number

Value of the tag. When location is served by a vehicle with a matching tag in tags field, this value is subtracted from the route cost. When the matching tag is in excluded_tags field, this value is added to the route cost.

initial_routes[].shift.start.node.value.parking_mode

string

Type of the parking node

Allowed values
  1. ParkingBegin
  2. ParkingRefill
  3. ParkingEnd

initial_routes[].shift.start.node.value.parking_service_duration_s

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.parking_type

string

Allowed values
  1. trailer
  2. vehicle

initial_routes[].shift.start.node.value.penalty

object

Penalties for non-completion and time window failure. More information

initial_routes[].shift.start.node.value.penalty.delivery_deadline

object

Penalty components for late deliveries from pickup locations to depots. Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option. More information

initial_routes[].shift.start.node.value.penalty.delivery_deadline.fixed

number

Fixed penalty applied if the depot is visited after the deadline.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.delivery_deadline.minute

number

Penalty for each minute of lateness, when the depot is visited after the deadline.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.depot_expiring_time

object

Penalty components for violation soft_depot_expiring_time restriction.

initial_routes[].shift.start.node.value.penalty.depot_expiring_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.start.node.value.penalty.depot_expiring_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.start.node.value.penalty.depot_ready_time

object

Penalty components for violation soft_depot_ready_time restriction.

initial_routes[].shift.start.node.value.penalty.depot_ready_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.start.node.value.penalty.depot_ready_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.start.node.value.penalty.drop

object

Penalty for not delivering an order. More information

initial_routes[].shift.start.node.value.penalty.drop.fixed

number

Fixed penalty for not delivering any part of the order.

initial_routes[].shift.start.node.value.penalty.drop.scaled

number

Penalty for not delivering order ratio.

Default value: 1e+06.

initial_routes[].shift.start.node.value.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.start.node.value.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.start.node.value.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.start.node.value.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.rolling_throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.start.node.value.penalty.rolling_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.rolling_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.start.node.value.penalty.rolling_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.start.node.value.penalty.rolling_throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.start.node.value.penalty.throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.start.node.value.penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.start.node.value.penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.start.node.value.penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.start.node.value.penalty.time_between_visits

object

Penalty components for exceeding max_time_between_visits_s restriction.

initial_routes[].shift.start.node.value.penalty.time_between_visits.fixed

number

Penalty for each case of violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.start.node.value.penalty.time_between_visits.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.start.node.value.penalty.transit_time

object

Penalty components for exceeding transit time

initial_routes[].shift.start.node.value.penalty.transit_time.fixed

object

Fixed penalty applied if the order was delivered with a violation of the soft transit time limit

initial_routes[].shift.start.node.value.penalty.transit_time.minute

object

Penalty for each minute transit time violation

initial_routes[].shift.start.node.value.phone

string

Phone number of delivery receiver.

initial_routes[].shift.start.node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].shift.start.node.value.pickup_from_any

boolean

Delivery-orders that have this field set to true must have multiple pickup orders associated with it. Any one of these pickup orders can be selected for delivery, and the rest will be ignored. The choice among the options is based on optimizing the cost of the route. More information

initial_routes[].shift.start.node.value.pickup_id

object

ID of a pickup corresponding to this delivery.

initial_routes[].shift.start.node.value.pickup_ids[]

array

List of IDs of pickups corresponding to this delivery.

One Of:

initial_routes[].shift.start.node.value.pickup_must_reach_depot

boolean

The field determines whether the pickup is considered serviced if it is not delivered depot. The field shouldnt be defined for types other than pickup. The field is mutually exclusive with fields delivery_to and delivery_to_any. If depot_id is defined and not empty then the field is considered as True and the value to False in not acceptable.

initial_routes[].shift.start.node.value.point

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.value.point.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.value.point.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.value.preset_id

string

Preset number for location properties.

initial_routes[].shift.start.node.value.quant

object

initial_routes[].shift.start.node.value.quant.units

number

Size of shipment in custom units.

Minimum value: 0.

initial_routes[].shift.start.node.value.quant.volume_cbm

number

Volume of minimal part, cubic meters.

Minimum value: 0.

initial_routes[].shift.start.node.value.quant.weight_kg

number

Weight of minimal part, kilograms.

Minimum value: 0.

initial_routes[].shift.start.node.value.ref

string

Location reference.

initial_routes[].shift.start.node.value.required_tags[]

array

List of tags a vehicle must have to arrive at the location. More information

initial_routes[].shift.start.node.value.rolling_throughput

object

Rolling throughput limit (supported for anchors).

initial_routes[].shift.start.node.value.rolling_throughput.kg_per_hour

object

initial_routes[].shift.start.node.value.rolling_throughput.kg_per_hour.time_window

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.

initial_routes[].shift.start.node.value.rolling_throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.rolling_throughput.units_per_hour

object

initial_routes[].shift.start.node.value.rolling_throughput.units_per_hour.time_window

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.

initial_routes[].shift.start.node.value.rolling_throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.rolling_throughput.vehicle_count

object

initial_routes[].shift.start.node.value.rolling_throughput.vehicle_count.time_window

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.

initial_routes[].shift.start.node.value.rolling_throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.routing_mode

string

The transportation method used to reach this location.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

initial_routes[].shift.start.node.value.sequence_order

integer

All locations in vehicle route with specified sequence_order option have to be visited in non-decreasing order of its values. More information

initial_routes[].shift.start.node.value.service_duration_s

object

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

initial_routes[].shift.start.node.value.service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_durations

object

Structure storing location service durations.

initial_routes[].shift.start.node.value.service_durations.client

object

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.

initial_routes[].shift.start.node.value.service_durations.client.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_durations.client.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_durations.crossdock

object

Time spent at a crossdock location during the unloading of this order. More information

initial_routes[].shift.start.node.value.service_durations.crossdock.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_durations.crossdock.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_durations.depot

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

initial_routes[].shift.start.node.value.service_durations.depot.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_durations.depot.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_durations.location

object

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

initial_routes[].shift.start.node.value.service_durations.location.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_durations.location.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_durations.parking

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.service_durations.stop

object

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

initial_routes[].shift.start.node.value.service_durations.stop.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_durations.stop.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_waiting_duration_s

number

Duration of waiting for service at a location. It can be non-zero when, for example, an order is a part of a multi-order, in this case waiting duration includes duration of service of the other orders from the multi-order.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.shared_service_duration_s

object

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

initial_routes[].shift.start.node.value.shared_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.shared_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.shared_with_company_ids[]

array

IDs of the companies that can access the order information.

initial_routes[].shift.start.node.value.shipment_size

object

Shipment size (dimensions and/or weight). More information

initial_routes[].shift.start.node.value.shipment_size.custom

object

Size of shipment in custom units. Sizes in custom units are defined in format "name": size, where name is a string denoting the name of a unit, and size is a non-negative floating-point number denoting the quantity of the corresponding unit in the shipment. If the name of a unit is present in other objects (locations/vehicles/trailers), but not this, it is assumed that the quantity of this unit in the shipment is zero. More information

initial_routes[].shift.start.node.value.shipment_size.units

number

Size of shipment in custom units.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.shipment_size.volume

object

Shipment dimensions and type.

initial_routes[].shift.start.node.value.shipment_size.volume.align

string

Defines allowed container alignment for rigid and fixed_bottom types (ignored for bulk containers):

  • all_axes — default, all axes of the box must be parallel to vehicle's axes;
  • height — the bottom of the box lies on a horizontal surface, but any rotation around the vertical axis (height) is allowed (note that any side can become a bottom for rigid containers).
    More information

Default value: all_axes.

Allowed values
  1. all_axes
  2. height

initial_routes[].shift.start.node.value.shipment_size.volume.depth_m *

number

Depth, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.start.node.value.shipment_size.volume.height_m *

number

Height, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.start.node.value.shipment_size.volume.type

string

Container type:

  • bulk — default type, shape can be changed arbitrary to fit the vehicle;
  • rigid — container is a box that must fit vehicle dimensions under some orientation;
  • fixed_bottom — the bottom of the box must stay the same, but the box can be rotated horizontally (height must fit vehicle's height).
    More information

Default value: bulk.

Allowed values
  1. bulk
  2. rigid
  3. fixed_bottom

initial_routes[].shift.start.node.value.shipment_size.volume.width_m *

number

Width, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.start.node.value.shipment_size.volume_cbm

number

Explicit volume, cubic meters. By default, the value is taken from "volume", if nothing is specified here.

Minimum value: 0.

initial_routes[].shift.start.node.value.shipment_size.weight_kg

number

Weight of shipment, kilograms.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.soft_depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

initial_routes[].shift.start.node.value.soft_depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.start.node.value.split_info

object

Information about split part of the order (in case if the order was split)

initial_routes[].shift.start.node.value.split_info.order_ratio

number

Order ratio, included in this part.

initial_routes[].shift.start.node.value.split_info.part_id

integer

Number of this part of the order.

initial_routes[].shift.start.node.value.split_info.parts_count

integer

Number of parts, in which the order was split.

initial_routes[].shift.start.node.value.split_info.units

number

Size of this part in custom units (in case there was corresponding quant specified for this order).

initial_routes[].shift.start.node.value.split_info.volume_cbm

number

Volume of this part, cubic meters (in case there was corresponding quant specified for this order).

initial_routes[].shift.start.node.value.split_info.weight_kg

number

Weight of this part, kilograms (in case there was corresponding quant specified for this order).

initial_routes[].shift.start.node.value.split_parts_must_fill_whole_vehicle

boolean

Parts, split from a splittable order, should fill the whole vehicle.

initial_routes[].shift.start.node.value.throughput

object

Location throughput limit (supported for the orders which can be split).

initial_routes[].shift.start.node.value.throughput.kg_per_hour

object

initial_routes[].shift.start.node.value.throughput.kg_per_hour.time_window

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.

initial_routes[].shift.start.node.value.throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.throughput.units_per_hour

object

initial_routes[].shift.start.node.value.throughput.units_per_hour.time_window

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.

initial_routes[].shift.start.node.value.throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.throughput.vehicle_count

object

initial_routes[].shift.start.node.value.throughput.vehicle_count.time_window

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.

initial_routes[].shift.start.node.value.throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.start.node.value.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.title

string

Location title.

initial_routes[].shift.start.node.value.total_service_duration_s

number

Total duration of service at a location, it includes service_duration_s, added_shared_service_duration_s` parking_service_duration_sandservice_waiting_duration_s`.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.trailer_decoupled

boolean

initial_routes[].shift.start.node.value.trailer_used

boolean

initial_routes[].shift.start.node.value.transit_time

object

Restrictions on the time the order spends inside a vehicle

initial_routes[].shift.start.node.value.transit_time.hard_limit_s

number

Hard time limit, values above it are unacceptable

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.transit_time.limit_s

number

Soft time limit, values above it are acceptable but they will be penalized

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.type

string

Defines a type of service at the location: delivery, pickup, drop_off or garage.

  • delivery — the load is picked up at the depot or at another location, and delivered to this location;
  • pickup — the load is picked up at this location, and delivered to another location (if delivery_to is specified), or to the depot;
  • drop_off — a pickup location may be delivered to any of related drop_off locations (see delivery_to_any`);
  • garage — a location which can be used as the first or the last vehicle location via start_at or finish_at vehicle option;
  • anchor — a location where trailers can be dropped and unloaded;
  • parking — a location where trailers can be dropped to serve a single other location. Trailers can not be unloaded there.
  • rest_place — a designated location where a vehicle can break work in cases when the work_break has the attribute "at_rest_place".
    More information

Default value: delivery.

Allowed values
  1. depot
  2. crossdock
  3. delivery
  4. pickup
  5. drop_off
  6. garage
  7. anchor
  8. parking
  9. rest_place

initial_routes[].shift.start.node.value.undroppable

boolean

Location cannot be dropped

initial_routes[].shift.start.node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].shift.start.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.start.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.start.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.start.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.start.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.start.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.start.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.start.node.value.unfeasible_reasons[].tags[] *

array

List of missing required tags.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • REQUIRED_TAGS_VIOLATION - the vehicle doesn't have required tags.
Allowed values
  1. REQUIRED_TAGS_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].tags[] *

array

List of present excluded tags.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • EXCLUDED_TAGS_VIOLATION - the order has the vehicle's excluded tags.
Allowed values
  1. EXCLUDED_TAGS_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile load type pairs

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].types[] *

array

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].types[].other_type *

string

Load type of the incompatible order.

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].types[].self_type *

string

Load type of the current order.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_LOAD_TYPES_VIOLATION - the order is incompatible with other order in run by load types.
Allowed values
  1. INCOMPATIBLE_LOAD_TYPES_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile zone pairs

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].zones[] *

array

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].zones[].other_zone *

string

Load type of the incompatible order.

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].zones[].self_zone *

string

Load type of the current order.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_ZONES_VIOLATION - the order is incompatible with other order in run by zones.
Allowed values
  1. INCOMPATIBLE_ZONES_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].tags[] *

array

List of vehicle's allowed zones.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • ALLOWED_ZONES_VIOLATION - location doesn't belong to any of vehicle's allowed zones.
Allowed values
  1. ALLOWED_ZONES_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].tags[] *

array

List of present forbidden zones.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FORBIDDEN_ZONES_VIOLATION - location belongs to some of the vehicle's forbidden zones.
Allowed values
  1. FORBIDDEN_ZONES_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].shift.start.node.value.use_in_proximity

boolean

When false, this location will be ignored in computation of proximity and global proximity. More information

Default value: true.

initial_routes[].shift.start.node.type *

string

Type of a route component.

Allowed values
  1. break

initial_routes[].shift.start.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.start.node.value *

object

Description of a work break.

initial_routes[].shift.start.node.value.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

initial_routes[].shift.start.node.value.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

initial_routes[].shift.start.node.value.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

initial_routes[].shift.start.node.value.chain_number

integer

Sequential number of a work break chain to which the break belongs.

initial_routes[].shift.start.node.value.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.value.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.value.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.start.node.value.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

initial_routes[].shift.start.node.value.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.penalty

object

Penalties applied for violations of work break conditions.

initial_routes[].shift.start.node.value.penalty.early

object

Penalty components for early work break.

initial_routes[].shift.start.node.value.penalty.early.fixed

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: 1000.

initial_routes[].shift.start.node.value.penalty.early.minute

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: 17.

initial_routes[].shift.start.node.value.penalty.late

object

Penalty components for late work break.

initial_routes[].shift.start.node.value.penalty.late.fixed

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: 1000.

initial_routes[].shift.start.node.value.penalty.late.minute

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: 17.

initial_routes[].shift.start.node.value.repeatable

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.

initial_routes[].shift.start.node.value.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.value.type

string

Type of work break. Used in merge_with_types field.

initial_routes[].shift.start.node.value.work_duration_s

number

Duration of continuous work before the break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.value.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.type *

string

Type of a route component.

Allowed values
  1. courier

initial_routes[].shift.start.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.start.node.value *

object

initial_routes[].shift.start.node.value.location_id *

string

Id of current location

initial_routes[].shift.start.node.value.passed_time_s

number

Time passed after courier leave current location. Consider that courier has not yet arrived to the next location.

initial_routes[].shift.start.overtime

object

initial_routes[].shift.start.overtime.duration_s *

number

Vehicle shift overtime in seconds.

initial_routes[].shift.start.probably_failed_time_window

object

initial_routes[].shift.start.probably_failed_time_window.duration_s *

number

Expected difference between arrival time and failing time window, seconds.

initial_routes[].shift.start.probably_failed_time_window.high_risk

boolean

When true, it means that probability of being late on location is greater or equal to critical_lateness_risk_probability.

initial_routes[].shift.start.probably_failed_time_window.how *

string

When a location is visited outside of the time window, indicates the time direction between the arrival time and the failed time window:

  • EARLY - arrival and service start are before the start of the time window;
  • LATE - arrival or service finish (depending on penalize_late_service) is after the end of the time window.
Allowed values
  1. EARLY
  2. LATE

initial_routes[].shift.start.probably_failed_time_window.probability *

number

Probability of being outside of the time window, percent.

initial_routes[].shift.start.stop_sequence_number

integer

Sequence number of a stop (among delivery, pickup and drop_off locations)

initial_routes[].shift.start.transit_distance_m *

number

Transit distance to a location, meters. If routing_mode is set to "transit", only pedestrian distance part of the route is considered.

initial_routes[].shift.start.transit_duration_s *

number

Transit time to a location, seconds.

initial_routes[].shift.start.violations[]

array

List of violations.

One Of:

initial_routes[].shift.start.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.start.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.start.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.start.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.start.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.start.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.start.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.start.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.start.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.start.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.start.violations[].high_risk *

boolean

When true, it means that probability of being late on location is greater or equal to critical_lateness_risk_probability.

initial_routes[].shift.start.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.start.violations[].probability *

number

Probability of being late, percent.

initial_routes[].shift.start.violations[].type *

string

Possible reasons:

  • PROBABLY_FAILED_DELIVERY_DEADLINE - depot may be visited after deadline of some pickup with nonzero probability.
Allowed values
  1. FAILED_DELIVERY_DEADLINE
  2. PROBABLY_FAILED_DELIVERY_DEADLINE

initial_routes[].shift.start.waiting_duration_s

number

Waiting duration, time spent at location after arrival and before the start of the time window, seconds.

initial_routes[].vehicle_id *

object

Vehicle ID. All vehicle IDs in task must be unique and have the same type: integer or string. More information

locations[] *

array

List of locations.

locations[].address

string

Address of the location.

locations[].allow_trailers

boolean

When true, vehicles with trailers can arrive at this location. Otherwise, they will have to leave the trailer at an anchor location beforehand. [More information](https://yandex.ru/routing/doc/vrp/concepts/properties-of-vehicles.html?lang=en#coupling

locations[].can_be_merged

boolean

An order can be a part of multiorder

Default value: true.

locations[].can_be_split

boolean

An order can be split into parts between different vehicles.

locations[].client_id

object

Defines id of a client corresponding to the location.

locations[].client_service_duration_s

object

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.

locations[].client_service_duration_s.fixed

number

Fixed service duration for any part of the order.

locations[].client_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].comments

string

Comments.

locations[].crossdock_mode

string

Defines whether it is allowed to deliver this order through a cross-dock depot.

  • deny — prohibited, can only be delivered from a regular depot;
  • allow — allowed, can be delivered either directly from a regular depot or through a cross-dock depot;
  • mandatory — required, can only be delivered through a cross-dock depot.

Default value: allow.

Allowed values
  1. deny
  2. allow
  3. mandatory

locations[].crossdock_service_duration_s

object

Time spent at a crossdock location during the unloading of this order. More information

locations[].crossdock_service_duration_s.fixed

number

Fixed service duration for any part of the order.

locations[].crossdock_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].custom_value

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[].delivery_deadline

string

Time by which the pickup order without specified delivery_to field should be delivered to any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

locations[].delivery_to

object

Defines id of a location where to deliver the shipment.More information

locations[].delivery_to_any[]

array

A list of drop_off location ID's, the pickup location must be delivered to any of these locations. More information

One Of:

locations[].depot_duration_s

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

locations[].depot_duration_s.fixed

number

Fixed service duration for any part of the order.

locations[].depot_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

locations[].depot_id

object

locations[].depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

locations[].description

string

Location description.

locations[].dropped_ratio

number

Order ratio which have to stay in drop

Minimum value: 0.
Maximum value: 1.

locations[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

locations[].hard_window

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 dropped_orders field in the response. This field is useful to model orders that cannot be completed within the time window, (e.g. due to conflicts with other orders). More information

locations[].id *

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

locations[].in_lifo_order

boolean

Orders with this field set to true are not allowed to move inside the vehicle and should be delivered in the reversed order of their pickups. Locations with this field set to false can appear anywhere in the route. This field only matters if both pickups and deliveries are present in route. More information

locations[].load_types[]

array

Defines types of location load.
mustnt be defined only for garage` location type.

locations[].max_split_parts

integer

Maximal number of parts in which the order can be split

Minimum value: 1.
Default value: 10.

locations[].max_total_vehicles

integer

Maximal number of vehicles that can be served by an anchor location. Unlimited by default. More information

locations[].may_drop_in_crossdock

boolean

May drop pickup order in crossdock location

Default value: true.

locations[].optional_tags[]

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[].optional_tags[].tag *

string

An arbitrary tag.

locations[].optional_tags[].value *

number

Value of the tag. When location is served by a vehicle with a matching tag in tags field, this value is subtracted from the route cost. When the matching tag is in excluded_tags field, this value is added to the route cost.

locations[].parking_service_duration_s

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

locations[].penalty

object

Penalties for non-completion and time window failure. More information

locations[].penalty.delivery_deadline

object

Penalty components for late deliveries from pickup locations to depots. Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option. More information

locations[].penalty.delivery_deadline.fixed

number

Fixed penalty applied if the depot is visited after the deadline.

Default value: 1000.

locations[].penalty.delivery_deadline.minute

number

Penalty for each minute of lateness, when the depot is visited after the deadline.

Default value: 17.

locations[].penalty.depot_expiring_time

object

Penalty components for violation soft_depot_expiring_time restriction.

locations[].penalty.depot_expiring_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

locations[].penalty.depot_expiring_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

locations[].penalty.depot_ready_time

object

Penalty components for violation soft_depot_ready_time restriction.

locations[].penalty.depot_ready_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

locations[].penalty.depot_ready_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

locations[].penalty.drop

object

Penalty for not delivering an order. More information

locations[].penalty.drop.fixed

number

Fixed penalty for not delivering any part of the order.

locations[].penalty.drop.scaled

number

Penalty for not delivering order ratio.

Default value: 1e+06.

locations[].penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

locations[].penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

locations[].penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

locations[].penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

locations[].penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

locations[].penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

locations[].penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

locations[].penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

locations[].penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

locations[].penalty.rolling_throughput

object

Penalty components for throughput exceeding.

locations[].penalty.rolling_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

locations[].penalty.rolling_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

locations[].penalty.rolling_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

locations[].penalty.rolling_throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

locations[].penalty.throughput

object

Penalty components for throughput exceeding.

locations[].penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

locations[].penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

locations[].penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

locations[].penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

locations[].penalty.time_between_visits

object

Penalty components for exceeding max_time_between_visits_s restriction.

locations[].penalty.time_between_visits.fixed

number

Penalty for each case of violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

locations[].penalty.time_between_visits.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

locations[].penalty.transit_time

object

Penalty components for exceeding transit time

locations[].penalty.transit_time.fixed

object

Fixed penalty applied if the order was delivered with a violation of the soft transit time limit

locations[].penalty.transit_time.minute

object

Penalty for each minute transit time violation

locations[].phone

string

Phone number of delivery receiver.

locations[].pickup_from_any

boolean

Delivery-orders that have this field set to true must have multiple pickup orders associated with it. Any one of these pickup orders can be selected for delivery, and the rest will be ignored. The choice among the options is based on optimizing the cost of the route. More information

locations[].pickup_must_reach_depot

boolean

The field determines whether the pickup is considered serviced if it is not delivered depot. The field shouldnt be defined for types other than pickup. The field is mutually exclusive with fields delivery_to and delivery_to_any. If depot_id is defined and not empty then the field is considered as True and the value to False in not acceptable.

locations[].point *

object

WGS84 coordinate of a location. More information

locations[].point.lat *

number

Minimum value: -90.
Maximum value: 90.

locations[].point.lon *

number

Minimum value: -180.
Maximum value: 180.

locations[].preset_id

string

Preset number for location properties.

locations[].quant

object

locations[].quant.units

number

Size of shipment in custom units.

Minimum value: 0.

locations[].quant.volume_cbm

number

Volume of minimal part, cubic meters.

Minimum value: 0.

locations[].quant.weight_kg

number

Weight of minimal part, kilograms.

Minimum value: 0.

locations[].ref

string

Location reference.

locations[].required_tags[]

array

List of tags a vehicle must have to arrive at the location. More information

locations[].rolling_throughput

object

Rolling throughput limit (supported for anchors).

locations[].rolling_throughput.kg_per_hour

object

locations[].rolling_throughput.kg_per_hour.time_window

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.

locations[].rolling_throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

locations[].rolling_throughput.units_per_hour

object

locations[].rolling_throughput.units_per_hour.time_window

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.

locations[].rolling_throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

locations[].rolling_throughput.vehicle_count

object

locations[].rolling_throughput.vehicle_count.time_window

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.

locations[].rolling_throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

locations[].sequence_order

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[].service_duration_s

object

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

locations[].service_duration_s.fixed

number

Fixed service duration for any part of the order.

locations[].service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].service_durations

object

Structure storing location service durations.

locations[].service_durations.client

object

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.

locations[].service_durations.client.fixed

number

Fixed service duration for any part of the order.

locations[].service_durations.client.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].service_durations.crossdock

object

Time spent at a crossdock location during the unloading of this order. More information

locations[].service_durations.crossdock.fixed

number

Fixed service duration for any part of the order.

locations[].service_durations.crossdock.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].service_durations.depot

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

locations[].service_durations.depot.fixed

number

Fixed service duration for any part of the order.

locations[].service_durations.depot.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].service_durations.location

object

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

locations[].service_durations.location.fixed

number

Fixed service duration for any part of the order.

locations[].service_durations.location.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].service_durations.parking

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

locations[].service_durations.stop

object

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

locations[].service_durations.stop.fixed

number

Fixed service duration for any part of the order.

locations[].service_durations.stop.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].shared_service_duration_s

object

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

locations[].shared_service_duration_s.fixed

number

Fixed service duration for any part of the order.

locations[].shared_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].shared_with_company_ids[]

array

IDs of the companies that can access the order information.

locations[].shipment_size

object

Shipment size (dimensions and/or weight). More information

locations[].shipment_size.custom

object

Size of shipment in custom units. Sizes in custom units are defined in format "name": size, where name is a string denoting the name of a unit, and size is a non-negative floating-point number denoting the quantity of the corresponding unit in the shipment. If the name of a unit is present in other objects (locations/vehicles/trailers), but not this, it is assumed that the quantity of this unit in the shipment is zero. More information

locations[].shipment_size.units

number

Size of shipment in custom units.

Minimum value: 0.
Maximum value: 1e+09.

locations[].shipment_size.volume

object

Shipment dimensions and type.

locations[].shipment_size.volume.align

string

Defines allowed container alignment for rigid and fixed_bottom types (ignored for bulk containers):

  • all_axes — default, all axes of the box must be parallel to vehicle's axes;
  • height — the bottom of the box lies on a horizontal surface, but any rotation around the vertical axis (height) is allowed (note that any side can become a bottom for rigid containers).
    More information

Default value: all_axes.

Allowed values
  1. all_axes
  2. height

locations[].shipment_size.volume.depth_m *

number

Depth, meters.

Minimum value: 0.
Maximum value: 1e+06.

locations[].shipment_size.volume.height_m *

number

Height, meters.

Minimum value: 0.
Maximum value: 1e+06.

locations[].shipment_size.volume.type

string

Container type:

  • bulk — default type, shape can be changed arbitrary to fit the vehicle;
  • rigid — container is a box that must fit vehicle dimensions under some orientation;
  • fixed_bottom — the bottom of the box must stay the same, but the box can be rotated horizontally (height must fit vehicle's height).
    More information

Default value: bulk.

Allowed values
  1. bulk
  2. rigid
  3. fixed_bottom

locations[].shipment_size.volume.width_m *

number

Width, meters.

Minimum value: 0.
Maximum value: 1e+06.

locations[].shipment_size.volume_cbm

number

Explicit volume, cubic meters. By default, the value is taken from "volume", if nothing is specified here.

Minimum value: 0.

locations[].shipment_size.weight_kg

number

Weight of shipment, kilograms.

Minimum value: 0.
Maximum value: 1e+09.

locations[].soft_depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

locations[].soft_depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

locations[].split_parts_must_fill_whole_vehicle

boolean

Parts, split from a splittable order, should fill the whole vehicle.

locations[].throughput

object

Location throughput limit (supported for the orders which can be split).

locations[].throughput.kg_per_hour

object

locations[].throughput.kg_per_hour.time_window

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.

locations[].throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

locations[].throughput.units_per_hour

object

locations[].throughput.units_per_hour.time_window

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.

locations[].throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

locations[].throughput.vehicle_count

object

locations[].throughput.vehicle_count.time_window

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.

locations[].throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

locations[].time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

locations[].time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

locations[].time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

locations[].time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

locations[].title

string

Location title.

locations[].transit_time

object

Restrictions on the time the order spends inside a vehicle

locations[].transit_time.hard_limit_s

number

Hard time limit, values above it are unacceptable

Minimum value: 0.
Maximum value: 1e+09.

locations[].transit_time.limit_s

number

Soft time limit, values above it are acceptable but they will be penalized

Minimum value: 0.
Maximum value: 1e+09.

locations[].type

string

Defines a type of service at the location: delivery, pickup, drop_off or garage.

  • delivery — the load is picked up at the depot or at another location, and delivered to this location;
  • pickup — the load is picked up at this location, and delivered to another location (if delivery_to is specified), or to the depot;
  • drop_off — a pickup location may be delivered to any of related drop_off locations (see delivery_to_any`);
  • garage — a location which can be used as the first or the last vehicle location via start_at or finish_at vehicle option;
  • anchor — a location where trailers can be dropped and unloaded;
  • parking — a location where trailers can be dropped to serve a single other location. Trailers can not be unloaded there.
  • rest_place — a designated location where a vehicle can break work in cases when the work_break has the attribute "at_rest_place".
    More information

Default value: delivery.

Allowed values
  1. depot
  2. crossdock
  3. delivery
  4. pickup
  5. drop_off
  6. garage
  7. anchor
  8. parking
  9. rest_place

locations[].use_in_proximity

boolean

When false, this location will be ignored in computation of proximity and global proximity. More information

Default value: true.

options *

object

Solver options. It is forbidden to specify options that are not present in the list below.

options.absolute_time

boolean

Use ISO 8601 format (YYYY-MM-DDTHH:MM:SS+HH:MM) for time_window in the result.

options.avoid_tolls

boolean

Do not use toll roads if possible (only for driving and truck routing modes). More information

options.balanced_groups[]

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 balanced_group_id field. Routes are balanced by metrics total_duration_s and/or total_stops depending on specified penalties. More information

options.balanced_groups[].id *

string

A unique ID of a balanced group of routes.

options.balanced_groups[].penalty

object

Penalties for imbalanced routes.

options.balanced_groups[].penalty.custom_value

number

Penalty per each custom_value unit of orders of root-sum-square deviation of a route custom_value unit of orders from an average number of custom_value unit of orders in a balanced group of routes.

Minimum value: 0.

options.balanced_groups[].penalty.hour

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: 0.

options.balanced_groups[].penalty.ignore_unused_vehicles

boolean

Ignore unused vehicles for the penalty calculation.

options.balanced_groups[].penalty.km

number

Penalty per km of root-sum-square deviation of a route distance from an average distance of a balanced group of routes.

Minimum value: 0.

options.balanced_groups[].penalty.served_order

number

Penalty per each missing or extra served order of root-sum-square deviation of a route served order count from an average number of served order in a balanced group of routes.

Minimum value: 0.

options.balanced_groups[].penalty.stop

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: 0.

options.balanced_groups[].penalty.unit

number

Penalty per each unit of orders weight of root-sum-square deviation of a route unit of orders weight from an average number of unit of orders weight in a balanced group of routes.

Minimum value: 0.

options.balanced_groups[].penalty.weight_kg

number

Penalty per each kg of orders weight of root-sum-square deviation of a route kg of orders weight from an average number of kg of orders weight in a balanced group of routes.

Minimum value: 0.

options.close_location_groups_radius_m

number

The distance specifying how close the locations must be to belong to the same close location group

Minimum value: 0.
Maximum value: 1e+09.

options.close_locations_during_post_optimization_only

boolean

Apply penalties defined in close_locations only during post_optimization stage. If the field is true, post-optimization must be turned on.

options.critical_lateness_risk_probability

number

If a probability of being late on a location is greater or equal than a specified value, than the location is accounted in lateness_risk_locations_count. The probability is defined in percent.

Minimum value: 1.
Maximum value: 50.
Default value: 20.

options.date

string

Starting date for all routes (YYYY-MM-DD format), defaults to current date. More information

options.enable_vehicle_classes

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: true.

options.fix_planned_shifts

boolean

Fix shifts of locations from planned routes.

options.force_merge_multiorders

boolean

Меняет поведение при включенной опции merge_multiorders - может объединить заказы, имеющие одинаковые координаты, даже если в результате ни одна машина не сможет доставить полученный заказ из-за ограничений вместимости, тегов или типов груза. Подробнее

options.global_proximity_factor

number

Level of location proximity influence on vehicle routes. Recommended values are from 0.0 to 1.0. Using this option makes locations closer to the last location in route. Using both proximity_factor and global_proximity_factor makes routes more tolerant to moving locations to the end of route. Note, that using proximity will decrease optimality of computed routes in terms of costs and penalties. More information

Minimum value: 0.
Maximum value: 10.

options.ignore_min_stops_for_unused

boolean

Ignore minimal_stops option for unused vehicles. More information

options.ignore_zones

boolean

Ignore all zone-related options in vehicles and locations. More information

options.immutable

boolean

All routes, specified in initial_routes, are used without changes, new runs can not be added.

options.incompatible_load_types[]

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.incompatible_zones[]

array

Each item in this array defines list of location zones, that should not be visited within the same vehicle run. More information

options.load_when_ready

boolean

Start load orders in depot when they are ready (in order of depot_ready_time). More information

options.location_groups[]

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.location_groups[].dependent

boolean

When true, either all or none of the locations in group will be served.

options.location_groups[].location_ids[] *

array

One Of:

options.location_groups[].solid

boolean

When true, all assigned locations in group will be served consecutively, but their order is not fixed.

options.location_groups[].title

string

options.matrix_router

string

Matrix router to be used for route planning

  • main — recommended for Russia, CIS and Turkey.
  • global — for other countries.
  • geodesic — distances are calculated directly without taking into account traffic jams.
  • auto — automatic router choice based on depot location.

Default value: main.

Allowed values
  1. main
  2. geodesic
  3. global
  4. auto

options.max_distance_to_projection_m

number

Restriction for max distance to projcetion point. Will be ignored if order has not any suitable projection

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

options.max_drop_penalty_percentage

number

Maximal relation of drop penalty to the sum of drop penalties in all orders. More information

Minimum value: 0.
Maximum value: 100.
Default value: 100.

options.max_split_orders_percentage

number

Maximal ratio of orders which can be split into parts

Minimum value: 0.
Maximum value: 100.
Default value: 100.

options.merge_multiorders

boolean

If possible merge those orders which have the same coordinates, i.e. serve them by a single vehicle. More information

options.merge_multiorders_of_different_clients

boolean

Если эта опция сброшена, то заказы с разным client_id но общей координатой будут образоывать отдельные остановки. Подробнее

Default value: true.

options.minimize_lateness_risk

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.multiorder_radius_m

number

The distance specifying how close the locations must be to be merged into a multiorder

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1.

options.penalize_late_service

boolean

This option determines whether to penalize for late arrivals or late service.

  • When false, late penalty is applied if a vehicle arrived to the location/depot or started serving the depot after the end of the time window. Note that for multi-orders the service start time of the whole multi-order is used for each suborder rather than the suborder's own service start.
  • When true, late penalty is applied if the location, depot or shift service was finished after the end of the time window.
    In most cases turning this option on is equivalent to decreasing the ends of all the time windows by service_duration_s of the corresponding locations, depots and shifts. However, it provides its own mechanics for the cases when it is not clear how much time will pass since arrival to the location till the end of service, e.g. in the cases of serving multi-orders and unloading pickups at the depot. It is recommended to set this to true if it is important to serve multi-orders in time rather than to arrive at a multi-order location in time. More information

options.penalty

object

Penalties for global solution limitations violation.

options.penalty.close_location_groups

object

Penalty components for extra visits to close location group poins.

options.penalty.close_location_groups.per_extra_point

number

Penalty for every point where vehicles/couriers arrive more than once.

Minimum value: 0.

options.penalty.close_location_groups.per_extra_vehicle

number

Penalty for every extra vehicle/courier that arrives at close location group points.

Minimum value: 0.

options.penalty.close_location_groups.per_extra_visit

number

Penalty for each extra visit to close location group points.

Minimum value: 0.

options.penalty.drop_penalty_percentage

object

Penalty components for max_drop_penalty_percentage violation.

options.penalty.drop_penalty_percentage.fixed

number

Fixed penalty applied if drop penalty ratio is too high.

Default value: 1000.

options.penalty.drop_penalty_percentage.per_percent

number

Penalty for each exceeding percent of drop penalty percentage.

Default value: 50.

options.penalty.multiorders

object

Penalty components for extra visits to multiorder poins.

options.penalty.multiorders.per_extra_point

number

Penalty for every point where vehicles/couriers arrive more than once.

Minimum value: 0.

options.penalty.multiorders.per_extra_vehicle

number

Penalty for every extra vehicle/courier that arrives at multi-order points.

Minimum value: 0.

options.penalty.multiorders.per_extra_visit

number

Penalty for each extra visit to multi-order points.

Minimum value: 0.

options.penalty.split_orders_percentage

object

Penalty components for max_split_orders_percentage violation.

options.penalty.split_orders_percentage.fixed

number

Fixed penalty applied if split orders ratio is too high.

Default value: 1000.

options.penalty.split_orders_percentage.per_percent

number

Penalty for each exceeding percent of split orders percentage.

Default value: 50.

options.points_throughputs[]

array

Each item in this array defines point throughput.

options.points_throughputs[].penalty

object

options.points_throughputs[].penalty.throughput

object

Penalty components for throughput exceeding.

options.points_throughputs[].penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

options.points_throughputs[].penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

options.points_throughputs[].penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

options.points_throughputs[].penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

options.points_throughputs[].point

object

WGS84 coordinate of a location. More information

options.points_throughputs[].point.lat *

number

Minimum value: -90.
Maximum value: 90.

options.points_throughputs[].point.lon *

number

Minimum value: -180.
Maximum value: 180.

options.points_throughputs[].throughput

object

Point throughput limit.

options.points_throughputs[].throughput.kg_per_hour

object

options.points_throughputs[].throughput.kg_per_hour.time_window

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.points_throughputs[].throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

options.points_throughputs[].throughput.units_per_hour

object

options.points_throughputs[].throughput.units_per_hour.time_window

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.points_throughputs[].throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

options.points_throughputs[].throughput.vehicle_count

object

options.points_throughputs[].throughput.vehicle_count.time_window

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.points_throughputs[].throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

options.post_optimization

boolean

Use post optimization: restart algorithm in the last 10% operations with disabled global proximity and balancing. More information

options.preset_id

string

Preset number for task options.

options.proximity_factor

number

Level of location proximity influence on vehicle routes. Recommended values are from 0.0 to 1.0. Using this option makes routes more tolerant to dropping locations. Note, that using proximity will decrease optimality of computed routes in terms of costs and penalties. More information

Minimum value: 0.
Maximum value: 10.

options.quality

string

Solution quality:

  • low — debug mode for development and validation of constraints, shortest run time;
  • normal — baseline solution quality, average run time;
  • high — highest possible quality, longest run time.
    Required field.

Default value: normal.

Allowed values
  1. low
  2. normal
  3. high

options.restart_on_drop

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.routing_mode

string

Transportation method. More information

  • driving — default mode, routing with car profile;
  • truck — routing with truck profile;
  • walking — routing with pedestrian profile, only on roads allowed for pedestrian traffic;
  • transit — routing with pedestrian profile combined with public transport;
  • bicycle — routing with bicycle profile.

Default value: driving.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

options.template_rest_schedules[]

array

List of rest schedule templates. More information

options.template_rest_schedules[].breaks *

object

options.template_rest_schedules[].breaks.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

options.template_rest_schedules[].breaks.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

options.template_rest_schedules[].breaks.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

options.template_rest_schedules[].breaks.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

options.template_rest_schedules[].breaks.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.penalty

object

Penalties applied for violations of work break conditions.

options.template_rest_schedules[].breaks.penalty.early

object

Penalty components for early work break.

options.template_rest_schedules[].breaks.penalty.early.fixed

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: 1000.

options.template_rest_schedules[].breaks.penalty.early.minute

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: 17.

options.template_rest_schedules[].breaks.penalty.late

object

Penalty components for late work break.

options.template_rest_schedules[].breaks.penalty.late.fixed

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: 1000.

options.template_rest_schedules[].breaks.penalty.late.minute

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: 17.

options.template_rest_schedules[].breaks.repeatable

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.template_rest_schedules[].breaks.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.type

string

Type of work break. Used in merge_with_types field.

options.template_rest_schedules[].breaks.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

options.template_rest_schedules[].breaks.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

options.template_rest_schedules[].breaks.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

options.template_rest_schedules[].breaks.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

options.template_rest_schedules[].breaks.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.penalty

object

Penalties applied for violations of work break conditions.

options.template_rest_schedules[].breaks.penalty.early

object

Penalty components for early work break.

options.template_rest_schedules[].breaks.penalty.early.fixed

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: 1000.

options.template_rest_schedules[].breaks.penalty.early.minute

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: 17.

options.template_rest_schedules[].breaks.penalty.late

object

Penalty components for late work break.

options.template_rest_schedules[].breaks.penalty.late.fixed

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: 1000.

options.template_rest_schedules[].breaks.penalty.late.minute

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: 17.

options.template_rest_schedules[].breaks.repeatable

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.template_rest_schedules[].breaks.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.type

string

Type of work break. Used in merge_with_types field.

options.template_rest_schedules[].breaks.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].id *

string

A unique ID of a template.

options.time_zone *

object

options.wait_in_multiorders

boolean

Allows to wait in multiorders. More information

Default value: true.

options.weighted_drop_penalty

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[].allow_different_depots_in_route

boolean

Vehicle is allowed to visit depots with different ids in the same route

vehicles[].allowed_zones[]

array

List of zones, which can be visited by vehicle. More information

vehicles[].can_change_depot_between_runs

boolean

Vehicle is allowed to start the run from different depot than the one where its previous run has ended

vehicles[].capacity

object

Vehicle capacity. More information

vehicles[].capacity.custom

object

Amount of custom units a vehicle is able to carry. Capacities in custom units are defined in format "name": size, where name is a string denoting the name of a unit, and size is a non-negative floating-point number denoting the vehicle capacity with respect to this unit. If the name of a unit is present in objects (locations/vehicles/trailers), but not this, it is assumed that the capacity is unlimited.

vehicles[].capacity.limits

object

Vehicle load limits.

vehicles[].capacity.limits.units_perc

number

Upper limit of total shipments size in custom units as a percentage of a vehicle capacity.

Minimum value: 0.
Default value: 100.

vehicles[].capacity.limits.volume_perc

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 (0.01 * volume_perc).

Minimum value: 0.
Default value: 100.

vehicles[].capacity.limits.weight_perc

number

Upper limit of total shipments weight as a percentage of total weight the vehicle is allowed to carry.

Minimum value: 0.
Default value: 100.

vehicles[].capacity.units

number

Amount of custom units a vehicle is able to carry.

Minimum value: 0.
Default value: 1e+09.

vehicles[].capacity.volume

object

Vehicle dimensions.

vehicles[].capacity.volume.depth_m *

number

Depth, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].capacity.volume.height_m *

number

Height, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].capacity.volume.width_m *

number

Width, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].capacity.volume_cbm

number

Volume a vehicle is able to fit, cubic meters.

Minimum value: 0.

vehicles[].capacity.weight_kg

number

Weight a vehicle is able to carry, kilograms.

Minimum value: 0.
Default value: 1e+09.

vehicles[].close_locations[]

array

vehicles[].close_locations[].distance_till_service_m

object

vehicles[].close_locations[].distance_till_service_m.penalty

number

Penalty per km exceeding the maximum distance between servicing close locations.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].close_locations[].distance_till_service_m.value

number

The maximum distance traveled between servicing two close locations.

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

vehicles[].close_locations[].duration_till_service_s

object

vehicles[].close_locations[].duration_till_service_s.penalty

number

Penalty per second exceeding the maximum time between servicing close locations.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].close_locations[].duration_till_service_s.value

number

The maximum time between servicing two close locations.

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

vehicles[].close_locations[].routing_mode

string

Transportation method is used to determine close locations. This parameter can be used only if the walking_courier field is defined in the vehicle. In this case, the values walking and the value of the main transportation method of the vehicle are acceptable.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

vehicles[].close_locations[].search_radius_m

number

Maximum distance between two locations in meters at which locations on which the restriction is applied.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].close_locations[].soft_search_radius_m

number

If value is greater than the corresponding value of the search_radius_m for locations at distances from search_radius_m to soft_search_radius_m, the penalty is linear reduced down to 0.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].cost

object

vehicles[].cost.fixed

number

Cost per fact of vehicle use (cost occurred if vehicle is included in route).

Minimum value: 0.
Default value: 3000.

vehicles[].cost.hour

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: 0.
Default value: 100.

vehicles[].cost.km

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: 0.
Default value: 8.

vehicles[].cost.location

number

Cost of using vehicle per location (default 0).

Minimum value: 0.

vehicles[].cost.run

number

Cost per single vehicle run from depot to locations.

Minimum value: 0.

vehicles[].cost.tonne_km

number

Cost of carrying one tonne for one kilometer (default 0).

Minimum value: 0.

vehicles[].cost.waiting_hour

number

Cost of waiting per hour. If not defined, the value specified in the hour field is used.

Minimum value: 0.

vehicles[].cost.route

string

Arithmetic expression representing route cost

vehicles[].cost.run

string

Arithmetic expression representing run cost

vehicles[].cost.shift

string

Arithmetic expression representing shift cost

vehicles[].crossdock_mode

string

Defines whether this machine is allowed to deliver orders to the cross-dock depot. More information

  • deny — prohibited, can only deliver to locations;
  • allow — allowed, can deliver both directly to locations and to a cross-dock depot;
  • mandatory — required, can only deliver to a cross-dock depot.

Default value: allow.

Allowed values
  1. deny
  2. allow
  3. mandatory

vehicles[].depot_extra_service_duration_s

number

Additional time required to load this vehicle in the depot.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].depot_id

object

vehicles[].depots_only_at_run_beginning

boolean

Middle depots are allowed only until first order location.

vehicles[].ending_depot_id

object

vehicles[].excluded_tags[]

array

List of excluding vehicle tags, checked for compatibility with location tags (POSIX-extended regular expression are used). More information

vehicles[].finish_at

object

Defines id of a location with type garage where the vehicle should finish the route.

vehicles[].finish_route_in_starting_depot

boolean

Finish route in the same depot where it started.

vehicles[].finish_run_in_starting_depot

boolean

Finish runs in the same depot where it started.

vehicles[].first_edges_penalty_factor

number

A factor that determines extra penalty/bonus for the first edge of each run.If positive, solver tries to serve orders starting from the closest to depot. If negative, solver tries to serve orders starting from the most distant from depot

vehicles[].fixed_planned_route

boolean

If true, planned route of the vehicle will be used without any changes. More information

vehicles[].fixed_work_breaks[]

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 shifts) is provided for the vehicle, you have to specify a valid shift_id for every work break. This option is primarily intended for combining with visited_locations to describe work breaks during visiting them, but they can be applied independently.

vehicles[].fixed_work_breaks[].shift_id

string

Unique identifier of a shift.

vehicles[].fixed_work_breaks[].work_duration_s *

number

Duration of continuous work before the break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].forbidden_zones[]

array

List of zones, which can not be visited by vehicle. More information

vehicles[].global_proximity_attraction_point

object

Defines id of a location with type garage, the distance to which is calculated for the global_proximity penalty.

vehicles[].id *

object

Vehicle ID. All vehicle IDs in task must be unique and have the same type: integer or string. More information

vehicles[].imei

integer

The number of the GPS tracker.

vehicles[].immutable

boolean

All routes for this vehicle, specified in initial_routes, are used without changes, new runs can not be added.

vehicles[].incompatible_load_types[]

array

Each item in this array defines list of location load types, that should not be handled within the same vehicle run (overrides incompatible_load_types value specified in options). More information

vehicles[].incompatible_zones[]

array

Each item in this array defines list of location zones, that should not be visited within the same vehicle run. (overrides incompatible_zones value specified in options). More information

vehicles[].last_edges_penalty_factor

number

A factor that determines extra penalty/bonus for the last edge of each run.If positive, solver tries to end serving orders closer to depot. If negative, solver tries to end serving orders farther from depot

vehicles[].max_middle_depots

integer

Maximal number of middle depots (i.e. depots which do not break the run) in the route

vehicles[].max_runs

integer

Maximal number of the vehicle runs from the depot to locations in all shifts. More information

Default value: 1.

vehicles[].middle_depot_id

object

vehicles[].min_stop_weight

number

Minimal total weight of all orders in one point. More information

vehicles[].onboard_incompatible_load_types

boolean

Determine load type incompatibility with respect only to orders on vehicle board.

vehicles[].optional_zones[]

array

List of optional zones with bonus

vehicles[].optional_zones[].value *

number

Value of the zone. This value is subtracted from the route cost for any served location with a matching zone.For location with multiple matching zones will be chosen the maximum bonus.

vehicles[].optional_zones[].zone *

string

Zone id.

vehicles[].payout

object

vehicles[].payout.route

string

Arithmetic expression representing route cost

vehicles[].payout.run

string

Arithmetic expression representing run cost

vehicles[].payout.shift

string

Arithmetic expression representing shift cost

vehicles[].penalty

object

Penalties for vehicle limitations violation.

vehicles[].penalty.arrival_after_start

object

Penalty components for arrived after start of timewindow

vehicles[].penalty.arrival_after_start.as_soon_as_possible

boolean

Option for arrive as soon as possible even it includes added wait in route. When using the parameter, it is also recommended to specify a non-zero value of the average_h parameter.

vehicles[].penalty.arrival_after_start.average_h

number

Penalty for average arrived after start of timewindow

vehicles[].penalty.empty_runs

object

Penalty components for empty runs, which cannot be skipped because of actual visit times.

vehicles[].penalty.empty_runs.fixed

number

Fixed penalty applied if there are empty runs left in the route.

vehicles[].penalty.empty_runs.per_run

number

Penalty for every empty run in the route.

vehicles[].penalty.min_stop_weight

object

Penalty components for insufficient total orders weight in point.

vehicles[].penalty.min_stop_weight.fixed

number

Fixed penalty applied if total orders weight is too low.

Default value: 1000.

vehicles[].penalty.min_stop_weight.kg

number

Penalty for each lacking kg of total orders weight.

Default value: 50.

vehicles[].phone

string

Phone number of the courier.

vehicles[].planned_route

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 fix_planned_shifts solver option. More information

vehicles[].planned_route.locations[] *

array

A planned order of locations in a vehicle route including all shifts and multiple runs. If the list of shifts (see shifts) is provided for the vehicle, you have to specify a valid shift_id for every location in the route.

vehicles[].planned_route.locations[].anchor_mode

string

Default value: Undefined.

Allowed values
  1. Decoupling
  2. Rolling
  3. Coupling
  4. Undefined

vehicles[].planned_route.locations[].delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

vehicles[].planned_route.locations[].delivery_in_current_run

boolean

All orders, loaded in this location, have to be delivered in current run.

vehicles[].planned_route.locations[].id *

object

Reference to a location specified in locations. More information

vehicles[].planned_route.locations[].is_middle_depot

boolean

Location is a middle depot.

vehicles[].planned_route.locations[].loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

vehicles[].planned_route.locations[].order_ratio

number

Order ratio, included in this part.

vehicles[].planned_route.locations[].parking_mode

string

Default value: Undefined.

Allowed values
  1. ParkingBegin
  2. ParkingRefill
  3. ParkingEnd
  4. Undefined

vehicles[].planned_route.locations[].picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

vehicles[].planned_route.locations[].shift_id

string

Unique identifier of a shift.

vehicles[].planned_route.locations[].wait_if_early

boolean

This option determines what happens if a vehicle arrives to the planned location early. When true, the vehicle will wait until the start of a location's time window before serving. When false, it will serve the location immediately. Should be true in the case of hard time window(s).

Default value: true.

vehicles[].planned_route.planned_runs_first

boolean

It is necessary to visit all depots, listed in planned_route, before making non-planned runs.

vehicles[].planned_route.start_time

object

vehicles[].planned_route.start_time.shift_id *

string

Unique identifier of a shift.

vehicles[].planned_route.start_time.start_time *

string

Shift start time, in[D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z.

vehicles[].planned_route.work_breaks[]

array

Planned work breaks for a vehicle route including all shifts and multiple runs. If the list of shifts (see shifts) is provided for the vehicle, you have to specify a valid shift_id for every work break. If both planned_work_breaks and fixed_work_breaks lists are provided for a vehicle, one must be a prefix of another upon restriction on any shift. Thus it is impossible to override fixed work breaks by planned work breaks.

vehicles[].planned_route.work_breaks[].shift_id

string

Unique identifier of a shift.

vehicles[].planned_route.work_breaks[].work_duration_s *

number

Duration of continuous work before the break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].preset_id

string

Preset number for vehicle properties.

vehicles[].ref

string

Vehicle reference number.

vehicles[].rest_schedule

object

Schedule of rest breaks. More information

vehicles[].rest_schedule.breaks *

object

vehicles[].rest_schedule.breaks.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

vehicles[].rest_schedule.breaks.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

vehicles[].rest_schedule.breaks.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

vehicles[].rest_schedule.breaks.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

vehicles[].rest_schedule.breaks.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.penalty

object

Penalties applied for violations of work break conditions.

vehicles[].rest_schedule.breaks.penalty.early

object

Penalty components for early work break.

vehicles[].rest_schedule.breaks.penalty.early.fixed

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: 1000.

vehicles[].rest_schedule.breaks.penalty.early.minute

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: 17.

vehicles[].rest_schedule.breaks.penalty.late

object

Penalty components for late work break.

vehicles[].rest_schedule.breaks.penalty.late.fixed

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: 1000.

vehicles[].rest_schedule.breaks.penalty.late.minute

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: 17.

vehicles[].rest_schedule.breaks.repeatable

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[].rest_schedule.breaks.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.type

string

Type of work break. Used in merge_with_types field.

vehicles[].rest_schedule.breaks.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

vehicles[].rest_schedule.breaks.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

vehicles[].rest_schedule.breaks.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

vehicles[].rest_schedule.breaks.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

vehicles[].rest_schedule.breaks.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.penalty

object

Penalties applied for violations of work break conditions.

vehicles[].rest_schedule.breaks.penalty.early

object

Penalty components for early work break.

vehicles[].rest_schedule.breaks.penalty.early.fixed

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: 1000.

vehicles[].rest_schedule.breaks.penalty.early.minute

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: 17.

vehicles[].rest_schedule.breaks.penalty.late

object

Penalty components for late work break.

vehicles[].rest_schedule.breaks.penalty.late.fixed

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: 1000.

vehicles[].rest_schedule.breaks.penalty.late.minute

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: 17.

vehicles[].rest_schedule.breaks.repeatable

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[].rest_schedule.breaks.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.type

string

Type of work break. Used in merge_with_types field.

vehicles[].rest_schedule.breaks.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule_id

string

ID of a rest schedule template used in this vehicle.

vehicles[].return_to_depot

boolean

If true, the vehicle returns to its depot after the last order.
When set to false and finish_at parameter is not specified, then the last route and shift will be finished at the last order location. When set to true and finish_at parameter is specified, the last vehicle route will go through the depot in the end and then will be finished together with the shift at the garage location.

Default value: true.

vehicles[].routing_mode

string

Transportation method. If present, overrides routing_mode specified in solver options. More information

  • driving — default mode, routing with car profile;
  • truck — routing with truck profile;
  • walking — routing with pedestrian profile, only on roads allowed for pedestrian traffic;
  • transit — routing with pedestrian profile combined with public transport;
  • bicycle — routing wtih bicycle profile.
Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

vehicles[].service_duration_multiplier

number

Service duration adjustment coefficient for slow or fast workers. More information

Minimum value: 0.001.
Default value: 1.

vehicles[].shared_service_duration_multiplier

number

Shared service duration adjustment coefficient for slow or fast workers. More information

Minimum value: 0.001.
Default value: 1.

vehicles[].shifts[]

array

List of vehicle shifts. More information

vehicles[].shifts[].balanced_group_id

string

ID of a corresponding balanced group of routes (see the option balanced_groups).

vehicles[].shifts[].hard_max_duration_s

number

Hard limit on the maximum shift duration in seconds. If both max_duration_s and hard_max_duration_s are present, the value of hard_max_duration_s should be greater or equal to the value of max_duration_s.

Minimum value: 0.
Maximum value: 3.1536e+09.
Default value: 2.592e+06.

vehicles[].shifts[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

vehicles[].shifts[].hard_window

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[].shifts[].id *

string

Unique identifier of a shift.

vehicles[].shifts[].immutable

boolean

All routes for this shift, specified in initial_routes, are used without changes, new runs can not be added.

vehicles[].shifts[].max_duration_s

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: 0.
Maximum value: 3.1536e+09.
Default value: 172800.

vehicles[].shifts[].max_mileage_km

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 penalty.max_mileage are applied. More information

Minimum value: 0.

vehicles[].shifts[].max_runs

integer

Maximal number of the vehicle runs from the depot to locations in shift.

Default value: 1.

vehicles[].shifts[].maximal_stops

integer

Maximal number of shift stops, if the final stop count is greater than this value, stop_excess penalties are applied.More information

Minimum value: 0.

vehicles[].shifts[].minimal_stops

integer

Minimal number of shift stops, if the final stop count is less than this value, stop_lack penalties are applied. More information

Minimum value: 0.

vehicles[].shifts[].minimal_unique_stops

integer

Minimal number of shift stops with unique coordinates, if the final stop count is less than this value, unique_stop_lack penalties are applied.

Minimum value: 0.

vehicles[].shifts[].penalty

object

Penalties for shift constraints violation.

vehicles[].shifts[].penalty.early

object

Penalty components for shifts started too early (used instead of out_of_time penalty). If the shift was also finished too early, it is applied to the shift finish too.

vehicles[].shifts[].penalty.early.fixed

number

Fixed penalty applied if the vehicle starts or finishes the shift before the start of the time window.

Default value: 1000.

vehicles[].shifts[].penalty.early.minute

number

Penalty for each minute of earliness if the vehicle starts or finishes the shift before the start of the time window.

Default value: 17.

vehicles[].shifts[].penalty.late

object

Penalty components for shifts finished too late (used instead of out_of_time penalty). This penalty is applied for being late to the end of the shift's time window or violating the max_duration_s bound. If both are violated simultaneously, the penalty is applied twice and summed. If the shift was started after the end of the time window, this penalty for the start time point is also added separately. More information

vehicles[].shifts[].penalty.late.fixed

number

Fixed penalty applied if the vehicle starts or finishes the shift after the end of the time window or shift duration exceeds the max_duration_s bound.

Default value: 1000.

vehicles[].shifts[].penalty.late.minute

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 max_duration_s seconds at the shift.

Default value: 17.

vehicles[].shifts[].penalty.max_mileage

object

Penalties applied for violating shift's max_mileage_km limit.

vehicles[].shifts[].penalty.max_mileage.fixed

number

Fixed penalty applied if a vehicle shift has mileage greater than max_mileage_km.

Minimum value: 0.
Default value: 1000.

vehicles[].shifts[].penalty.max_mileage.km

number

Penalty applied per each extra kilometer when shift mileage is greater than max_mileage_km shift parameter.

Minimum value: 0.
Default value: 100.

vehicles[].shifts[].penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

vehicles[].shifts[].penalty.out_of_time.fixed

number

Fixed penalty applied if the vehicle starts or finishes the shift outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

vehicles[].shifts[].penalty.out_of_time.minute

number

Penalty for each minute of being outside of the time window of the shift. See the specifications of early and late options for more details in each case.

Default value: 17.

vehicles[].shifts[].penalty.stop_excess

object

Penalties applied for violating shift's maximal_stops limit.

vehicles[].shifts[].penalty.stop_excess.fixed

number

Fixed penalty applied if a vehicle shift has greater than maximal_stops stops.

Minimum value: 0.

vehicles[].shifts[].penalty.stop_excess.per_stop

number

Penalty applied per each extra stop when shift stop count is greater than maximal_stops parameter.

Minimum value: 0.

vehicles[].shifts[].penalty.stop_lack

object

Penalties applied for violating shift's minimal_stops limit.

vehicles[].shifts[].penalty.stop_lack.fixed

number

Fixed penalty applied if a vehicle shift has less than minimal_stops stops.

Minimum value: 0.

vehicles[].shifts[].penalty.stop_lack.per_stop

number

Penalty applied per each missing stop when shift stop count is less than minimal_stops parameter.

Minimum value: 0.

vehicles[].shifts[].penalty.unique_stop_lack

object

Penalties applied for violating shift's minimal_stops limit.

vehicles[].shifts[].penalty.unique_stop_lack.fixed

number

Fixed penalty applied if a vehicle shift has less than minimal_stops stops.

Minimum value: 0.

vehicles[].shifts[].penalty.unique_stop_lack.per_stop

number

Penalty applied per each missing stop when shift stop count is less than minimal_stops parameter.

Minimum value: 0.

vehicles[].shifts[].preset_id

string

Preset number for vehicle shift.

vehicles[].shifts[].service_duration_s

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: 0.
Maximum value: 3.1536e+09.

vehicles[].shifts[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

vehicles[].specs

object

Vehicle specification. More information

vehicles[].specs.height

number

Height of the vehicle, meters.

Minimum value: 0.

vehicles[].specs.length

number

Length of the vehicle, meters.

Minimum value: 0.

vehicles[].specs.max_weight

number

Maximum weight of the vehicle, tons.

Minimum value: 0.

vehicles[].specs.max_weight_kg

number

Maximum weight of the vehicle, kilograms. When solving the problem, the characteristic will be rounded up to tons.If both characteristics are set max_weight and max_weight_kg, `max_weight will be used.

Minimum value: 0.

vehicles[].specs.width

number

Width of the vehicle, meters.

Minimum value: 0.

vehicles[].start_at

object

Defines id of a location with type garage where the vehicle should start the route. More information

vehicles[].starting_depot_id

object

vehicles[].tags[]

array

List of vehicle tags, checked for compatibility with location tags (POSIX-extended regular expression are used). More information

vehicles[].trailer

object

Trailer specification. Usage of trailer with walking_courier is forbidden.More information

vehicles[].trailer.capacity

object

Trailer capacity.

vehicles[].trailer.capacity.custom

object

Amount of custom units a trailer is able to carry. Capacities in custom units are defined in format "name": size, where name is a string denoting the name of a unit, and size is a non-negative floating-point number denoting the vehicle capacity with respect to this unit. If the name of a unit is present in objects (locations/vehicles/trailers), but not this, it is assumed that the capacity is unlimited.

vehicles[].trailer.capacity.limits

object

Trailer load limits.

vehicles[].trailer.capacity.limits.units_perc

number

Upper limit of total shipments size in custom units as a percentage of a trailer capacity

Minimum value: 0.
Default value: 100.

vehicles[].trailer.capacity.limits.volume_perc

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 (0.01 * volume_perc).

Minimum value: 0.
Default value: 100.

vehicles[].trailer.capacity.limits.weight_perc

number

Upper limit of total shipments weight as a percentage of total weight the trailer is allowed to carry.

Minimum value: 0.
Default value: 100.

vehicles[].trailer.capacity.units

number

Amount of custom units a trailer is able to carry.

Minimum value: 0.
Default value: 1e+09.

vehicles[].trailer.capacity.volume

object

Trailer dimensions.

vehicles[].trailer.capacity.volume.depth_m *

number

Depth, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].trailer.capacity.volume.height_m *

number

Height, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].trailer.capacity.volume.width_m *

number

Width, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].trailer.capacity.volume_cbm

number

Volume a trailer is able to fit, cubic meters.

Minimum value: 0.

vehicles[].trailer.capacity.weight_kg

number

Weight a trailer is able to carry, kilograms.

Minimum value: 0.
Default value: 1e+09.

vehicles[].trailer.cost

object

Trailer cost.

vehicles[].trailer.cost.fixed

number

Cost per fact of trailer use (cost occurred if trailer is used in route).

Minimum value: 0.
Default value: 3000.

vehicles[].trailer.cost.hour

number

Cost of using trailer per hour.

Minimum value: 0.
Default value: 100.

vehicles[].trailer.cost.km

number

Cost of using trailer per kilometer.

Minimum value: 0.
Default value: 8.

vehicles[].trailer.cost.location

number

Cost of using trailer per location (default 0).

Minimum value: 0.

vehicles[].trailer.cost.run

number

Cost per single vehicle run from depot to locations.

Minimum value: 0.

vehicles[].trailer.cost.tonne_km

number

Cost of carrying one tonne for one kilometer (default 0).

Minimum value: 0.

vehicles[].trailer.cost.waiting_hour

number

Cost of waiting per hour. If not defined, the value specified in the hour field is used.

Minimum value: 0.

vehicles[].trailer.coupling_time_s

number

Extra time to couple the trailer, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].trailer.decoupling_time_s

number

Extra time to decouple the trailer, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].trailer.max_capacity_difference

object

The maximum difference between the loading of the trailer and the head.

vehicles[].trailer.max_capacity_difference.custom

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 "name": size, where name is a string denoting the name of a unit, and size is a floating-point number denoting the allowable difference with respect to this unit. If the name of a unit is present in objects (locations/vehicles/trailers), but not this, it is assumed that there is no restriction.

vehicles[].trailer.max_capacity_difference.units

number

The maximum allowable difference in the loaded amount of custom units between the trailer and the head.

vehicles[].trailer.max_capacity_difference.volume_cbm

number

The maximum allowable difference in the loaded volume between the trailer and the head, cubic meters.

vehicles[].trailer.max_capacity_difference.weight_kg

number

The maximum allowable difference in the loaded weight between the trailer and the head, kilograms.

vehicles[].trailer.rolling_cost

number

Penalty for each rolling of goods from the trailer to the head.

Minimum value: 0.

vehicles[].trailer.rolling_time

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[].trailer.rolling_time.fixed_time_s

number

Fixed time spent each time a trailer is loaded or unloaded, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].trailer.rolling_time.s_per_kg

number

Loading time per kg, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].trailer.rolling_time.s_per_m3

number

Loading time per cubic meter, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].trailer.rolling_time.s_per_unit

number

Loading time per unit, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].travel_time_multiplier

number

Travel duration adjustment coefficient for slow or fast vehicles. More information

Minimum value: 0.001.
Default value: 1.

vehicles[].visit_depot_at_start

boolean

If true, the first route of the vehicle will go through the depot in the beginning.More information
There are four different scenarios to define the first vehicle's route beginning using options start_at and visit_depot_at_start:

  • start_at defined, visit_depot_at_start`=true: garage->depot` -> location;
  • start_at defined, visit_depot_at_start`=false: garage` -> locations;
  • start_at undefined, visit_depot_at_start`=true: depot` -> locations;
  • start_at undefined, visit_depot_at_start`=false`: locations.

Default value: true.

vehicles[].visited_locations[]

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 fixed_work_breaks vehicle's option. More information

vehicles[].visited_locations[].delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

vehicles[].visited_locations[].id *

object

Reference to a location specified in locations. More information

vehicles[].visited_locations[].order_ratio

number

Order ratio, included in this part.

vehicles[].visited_locations[].shift_id

string

Unique identifier of a shift.

vehicles[].visited_locations[].time

string

Time of departure from a location, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z.

vehicles[].visited_locations[].wait_if_early

boolean

This option determines what happens if a vehicle arrives to the planned location early. When true, the vehicle will wait until the start of a location's time window before serving. When false, it will serve the location immediately. Should be true in the case of hard time window(s).

Default value: true.

vehicles[].walking_courier

object

Description of a pedestrian courier. Usage of walking_courier in vehicle with trailer is forbidden.

vehicles[].walking_courier.capacity

object

Capacity of a courier

vehicles[].walking_courier.capacity.units

number

Amount of custom units a courier is able to carry.

Minimum value: 0.
Default value: 1e+09.

vehicles[].walking_courier.cost

object

Courier work cost.

vehicles[].walking_courier.cost.hour

number

Cost per hour of courier walking routes.

Minimum value: 0.

vehicles[].walking_courier.cost.km

number

Cost per kilometer walked by courier.

Minimum value: 0.

vehicles[].walking_courier.restrictions

object

vehicles[].walking_courier.restrictions.max_parking_duration_s

object

vehicles[].walking_courier.restrictions.max_parking_duration_s.penalty

number

Penalty per second exceeding the maximum parking time.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].walking_courier.restrictions.max_parking_duration_s.value

number

The maximum duration of the walking part allowed within one parking, seconds.

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

vehicles[].walking_courier.restrictions.max_parking_walking_distance_m

object

vehicles[].walking_courier.restrictions.max_parking_walking_distance_m.penalty

number

Penalty per m exceeding the maximum distance traveled within one parking.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].walking_courier.restrictions.max_parking_walking_distance_m.value

number

The maximum walking distance allowed within one parking.

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

vehicles[].walking_courier.restrictions.max_walking_edge_distance_m

object

vehicles[].walking_courier.restrictions.max_walking_edge_distance_m.penalty

number

Penalty for exceeding the walking edge limit per meter.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].walking_courier.restrictions.max_walking_edge_distance_m.value

number

Max walking distance between two locations in route, meters.

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

zones[]

array

zones[].geometry *

object

zones[].geometry.coordinates[]

array

zones[].geometry.type

string

Always equals Polygon

zones[].id *

string

Zone id

depot

object

A depot, by default start and finish point for a vehicle on route.

depot.address

string

Address of the location.

depot.crossdock_safety_waiting_duration_s

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: 0.
Maximum value: 3.1536e+09.
Default value: 3600.

depot.description

string

Location description.

depot.finish_service_duration_s

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: 0.
Maximum value: 3.1536e+09.

depot.flexible_start_time

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
Also when flexible_start_time option is used, the solver can generate routes where arrival time is very close to end of the time window. It is often undesired route plans, because there is a risk of being late on such locations. An option minimize_lateness_risk and/or penalize_late_service is recommended to be used together with flexible_start_time to avoid such routes.

depot.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.hard_window

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.id

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

depot.load_service_duration_s

number

Additional duration for loading delivery orders into a vehicle, added only if there is at least one delivery order,loaded in this depot.

Minimum value: 0.

depot.package_throughput

object

Restriction on packaging speed in depot.

depot.package_throughput.kg_per_hour

object

depot.package_throughput.kg_per_hour.time_window

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.package_throughput.kg_per_hour.value

number

Depot package throughput, kilograms per hour.

Minimum value: 0.

depot.package_throughput.units_per_hour

object

depot.package_throughput.units_per_hour.time_window

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.package_throughput.units_per_hour.value

number

Depot package throughput, units per hour.

Minimum value: 0.

depot.penalty

object

Penalties for depot time window or throughput failure. More information

depot.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depot.penalty.early.fixed

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: 1000.

depot.penalty.early.minute

number

Penalty for each minute of early service of the depot. Applied in the same cases as the fixed penalty.

Default value: 17.

depot.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depot.penalty.late.fixed

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: 1000.

depot.penalty.late.minute

number

Penalty for each minute of lateness for every visit of the depot after the end of the time window.

Default value: 17.

depot.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depot.penalty.out_of_time.fixed

number

Fixed penalty applied if the depot is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depot.penalty.out_of_time.minute

number

Penalty for each minute of being outside of the time window of the depot. See the specifications of early and late options for more details in each case.

Default value: 17.

depot.penalty.package_throughput

object

Penalty components for package throughput exceeding.

depot.penalty.package_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

depot.penalty.package_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

depot.penalty.package_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

depot.penalty.throughput

object

Penalty components for throughput exceeding.

depot.penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

depot.penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

depot.penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

depot.penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

depot.point *

object

WGS84 coordinate of a location. More information

depot.point.lat *

number

Minimum value: -90.
Maximum value: 90.

depot.point.lon *

number

Minimum value: -180.
Maximum value: 180.

depot.preliminary_service_duration_s

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 depot_ready_time of deliveries that are loaded at this vehicle. More information

Minimum value: 0.
Maximum value: 3.1536e+09.

depot.preset_id

string

Preset number for depot properties.

depot.ref

string

Location reference.

depot.service_duration_s

object

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

depot.service_duration_s.fixed

number

Fixed service duration for any part of the order.

depot.service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

depot.throughput

object

Depot throughput limit. More information

depot.throughput.kg_per_hour

object

depot.throughput.kg_per_hour.time_window

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.throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

depot.throughput.units_per_hour

object

depot.throughput.units_per_hour.time_window

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.throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

depot.throughput.vehicle_count

object

depot.throughput.vehicle_count.time_window

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.throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

depot.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depot.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_loading

object

Time windows when the vehicle is allowed to leave the depot on the 1st run

depot.time_windows_loading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_loading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depot.time_windows_loading.penalty

object

depot.time_windows_loading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depot.time_windows_loading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depot.time_windows_loading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depot.time_windows_loading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depot.time_windows_loading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depot.time_windows_loading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depot.time_windows_loading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depot.time_windows_loading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depot.time_windows_loading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depot.time_windows_loading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_loading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depot.time_windows_loading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_loading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_refilling

object

Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading

depot.time_windows_refilling.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_refilling.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depot.time_windows_refilling.penalty

object

depot.time_windows_refilling.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depot.time_windows_refilling.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depot.time_windows_refilling.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depot.time_windows_refilling.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depot.time_windows_refilling.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depot.time_windows_refilling.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depot.time_windows_refilling.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depot.time_windows_refilling.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depot.time_windows_refilling.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depot.time_windows_refilling.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_refilling.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depot.time_windows_refilling.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_refilling.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_unloading

object

Time windows when the vehicle is allowed to return to the depot on the last run

depot.time_windows_unloading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_unloading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depot.time_windows_unloading.penalty

object

depot.time_windows_unloading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depot.time_windows_unloading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depot.time_windows_unloading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depot.time_windows_unloading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depot.time_windows_unloading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depot.time_windows_unloading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depot.time_windows_unloading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depot.time_windows_unloading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depot.time_windows_unloading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depot.time_windows_unloading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.time_windows_unloading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depot.time_windows_unloading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depot.time_windows_unloading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depot.title

string

Location title.

depot.type

string

Defines a type of depot: depot or crossdock.

  • depot — the main depot where orders are stored.
  • crossdock — the additional depot where there are no orders initially. To deliver orders from this depot, another vehicle must first deliver them here from the main depot where they are stored.

Default value: depot.

Allowed values
  1. depot
  2. crossdock

depot.unload_service_duration_s

number

Additional duration for unloading pickup orders from a vehicle, added only if there is at least one pickup order,delivered in this depot.

Minimum value: 0.

depot.use_in_proximity

boolean

When false, this depot will be ignored in computation of proximity and global proximity. When true, this depot will be used in computation of proximity and global proximity.If parameter is not defined, this depot will be used in computation of proximity in compatible mode.

depots[]

array

List of depots. Fields depot and depots are mutually exclusive. More information

depots[].address

string

Address of the location.

depots[].crossdock_safety_waiting_duration_s

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: 0.
Maximum value: 3.1536e+09.
Default value: 3600.

depots[].description

string

Location description.

depots[].finish_service_duration_s

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: 0.
Maximum value: 3.1536e+09.

depots[].flexible_start_time

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
Also when flexible_start_time option is used, the solver can generate routes where arrival time is very close to end of the time window. It is often undesired route plans, because there is a risk of being late on such locations. An option minimize_lateness_risk and/or penalize_late_service is recommended to be used together with flexible_start_time to avoid such routes.

depots[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].hard_window

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[].id

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

depots[].load_service_duration_s

number

Additional duration for loading delivery orders into a vehicle, added only if there is at least one delivery order,loaded in this depot.

Minimum value: 0.

depots[].package_throughput

object

Restriction on packaging speed in depot.

depots[].package_throughput.kg_per_hour

object

depots[].package_throughput.kg_per_hour.time_window

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[].package_throughput.kg_per_hour.value

number

Depot package throughput, kilograms per hour.

Minimum value: 0.

depots[].package_throughput.units_per_hour

object

depots[].package_throughput.units_per_hour.time_window

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[].package_throughput.units_per_hour.value

number

Depot package throughput, units per hour.

Minimum value: 0.

depots[].penalty

object

Penalties for depot time window or throughput failure. More information

depots[].penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depots[].penalty.early.fixed

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: 1000.

depots[].penalty.early.minute

number

Penalty for each minute of early service of the depot. Applied in the same cases as the fixed penalty.

Default value: 17.

depots[].penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depots[].penalty.late.fixed

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: 1000.

depots[].penalty.late.minute

number

Penalty for each minute of lateness for every visit of the depot after the end of the time window.

Default value: 17.

depots[].penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depots[].penalty.out_of_time.fixed

number

Fixed penalty applied if the depot is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depots[].penalty.out_of_time.minute

number

Penalty for each minute of being outside of the time window of the depot. See the specifications of early and late options for more details in each case.

Default value: 17.

depots[].penalty.package_throughput

object

Penalty components for package throughput exceeding.

depots[].penalty.package_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

depots[].penalty.package_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

depots[].penalty.package_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

depots[].penalty.throughput

object

Penalty components for throughput exceeding.

depots[].penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

depots[].penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

depots[].penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

depots[].penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

depots[].point *

object

WGS84 coordinate of a location. More information

depots[].point.lat *

number

Minimum value: -90.
Maximum value: 90.

depots[].point.lon *

number

Minimum value: -180.
Maximum value: 180.

depots[].preliminary_service_duration_s

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 depot_ready_time of deliveries that are loaded at this vehicle. More information

Minimum value: 0.
Maximum value: 3.1536e+09.

depots[].preset_id

string

Preset number for depot properties.

depots[].ref

string

Location reference.

depots[].service_duration_s

object

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

depots[].service_duration_s.fixed

number

Fixed service duration for any part of the order.

depots[].service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

depots[].throughput

object

Depot throughput limit. More information

depots[].throughput.kg_per_hour

object

depots[].throughput.kg_per_hour.time_window

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[].throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

depots[].throughput.units_per_hour

object

depots[].throughput.units_per_hour.time_window

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[].throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

depots[].throughput.vehicle_count

object

depots[].throughput.vehicle_count.time_window

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[].throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

depots[].time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depots[].time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_loading

object

Time windows when the vehicle is allowed to leave the depot on the 1st run

depots[].time_windows_loading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_loading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depots[].time_windows_loading.penalty

object

depots[].time_windows_loading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depots[].time_windows_loading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depots[].time_windows_loading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depots[].time_windows_loading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depots[].time_windows_loading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depots[].time_windows_loading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depots[].time_windows_loading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depots[].time_windows_loading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depots[].time_windows_loading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depots[].time_windows_loading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_loading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depots[].time_windows_loading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_loading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_refilling

object

Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading

depots[].time_windows_refilling.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_refilling.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depots[].time_windows_refilling.penalty

object

depots[].time_windows_refilling.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depots[].time_windows_refilling.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depots[].time_windows_refilling.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depots[].time_windows_refilling.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depots[].time_windows_refilling.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depots[].time_windows_refilling.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depots[].time_windows_refilling.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depots[].time_windows_refilling.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depots[].time_windows_refilling.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depots[].time_windows_refilling.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_refilling.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depots[].time_windows_refilling.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_refilling.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_unloading

object

Time windows when the vehicle is allowed to return to the depot on the last run

depots[].time_windows_unloading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_unloading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

depots[].time_windows_unloading.penalty

object

depots[].time_windows_unloading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

depots[].time_windows_unloading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

depots[].time_windows_unloading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

depots[].time_windows_unloading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

depots[].time_windows_unloading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

depots[].time_windows_unloading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

depots[].time_windows_unloading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

depots[].time_windows_unloading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

depots[].time_windows_unloading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

depots[].time_windows_unloading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].time_windows_unloading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

depots[].time_windows_unloading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

depots[].time_windows_unloading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

depots[].title

string

Location title.

depots[].type

string

Defines a type of depot: depot or crossdock.

  • depot — the main depot where orders are stored.
  • crossdock — the additional depot where there are no orders initially. To deliver orders from this depot, another vehicle must first deliver them here from the main depot where they are stored.

Default value: depot.

Allowed values
  1. depot
  2. crossdock

depots[].unload_service_duration_s

number

Additional duration for unloading pickup orders from a vehicle, added only if there is at least one pickup order,delivered in this depot.

Minimum value: 0.

depots[].use_in_proximity

boolean

When false, this depot will be ignored in computation of proximity and global proximity. When true, this depot will be used in computation of proximity and global proximity.If parameter is not defined, this depot will be used in computation of proximity in compatible mode.

initial_routes[]

array

List of routes in old response, which has to be loaded into solver.

initial_routes[].fixed_order

boolean

Locations, specified in initial_routes, cannot be reordered

initial_routes[].immutable

boolean

A route, specified in initial_routes, is used without changes.

initial_routes[].route[] *

array

Sequence of route nodes, comprising a route.

initial_routes[].route[].actual_arrival_time_s

object

Actual arrival time at the location.

initial_routes[].route[].actual_departure_time_s

object

Actual time of departure from the location.

initial_routes[].route[].actual_service_start_time_s

object

Actual time of service start in the location.

initial_routes[].route[].arrival_time_s

object

Arrival time at the location. Arrival happened before the start of the time window, will incur waiting time.

initial_routes[].route[].departure_time_s

object

Time of departure from the location.

initial_routes[].route[].load_to_head[]

array

List of orders that should be loaded to the head of the vehicle at depot or anchor location, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].route[].load_to_trailer[]

array

List of orders that should be loaded to the trailer of the vehicle at depot, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].route[].multi_order

boolean

An order is one of several orders at exactly the same location which are served together. Arrival time is the same for all orders in the group, also the orders share shared_service_duration_s. Total service duration of all orders in multi-order group is computed as: max(shared_service_duration_s) + sum(service_duration_s).

initial_routes[].route[].node *

object

Route component.

initial_routes[].route[].node.type

string

Type of a route component.

Allowed values
  1. depot

initial_routes[].route[].node.value *

object

A representation of a location in initial routes

initial_routes[].route[].node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].route[].node.value.added_shared_service_duration_s

number

Added duration of shared service, for first order in multi-order equals to shared_service_duration_sFor other orders in multi-order maybe non-zero,if shared_service_duration_s of current order is more than shared_service_duration_s of previous orders

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.anchor_mode

string

Default value: Undefined.

Allowed values
  1. Decoupling
  2. Rolling
  3. Coupling
  4. Undefined

initial_routes[].route[].node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].route[].node.value.delivery_deadline

string

Time by which the pickup order without specified delivery_to field should be delivered to any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].route[].node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].route[].node.value.fixed_run

boolean

Order can only be added in the run in which it was planned

initial_routes[].route[].node.value.fixed_shift

boolean

Order can only be added in the shift in which it was planned

initial_routes[].route[].node.value.fixed_vehicle

boolean

Order can only be taken by the vehicle in which it was planned

initial_routes[].route[].node.value.id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.keep_in_vehicle

boolean

When order is dropped it still takes space in the vehicle

initial_routes[].route[].node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].route[].node.value.parking_mode

string

Default value: Undefined.

Allowed values
  1. ParkingBegin
  2. ParkingRefill
  3. ParkingEnd
  4. Undefined

initial_routes[].route[].node.value.parking_type

string

Allowed values
  1. trailer
  2. vehicle

initial_routes[].route[].node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].route[].node.value.pickup_id

object

ID of a pickup corresponding to this delivery.

initial_routes[].route[].node.value.pickup_ids[]

array

List of IDs of pickups corresponding to this delivery.

One Of:

initial_routes[].route[].node.value.service_waiting_duration_s

number

Duration of waiting for service at a location. It can be non-zero when, for example, an order is a part of a multi-order, in this case waiting duration includes duration of service of the other orders from the multi-order.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.split_info

object

Information about split part of the order (in case if the order was split)

initial_routes[].route[].node.value.split_info.order_ratio

number

Order ratio, included in this part.

initial_routes[].route[].node.value.split_info.part_id

integer

Number of this part of the order.

initial_routes[].route[].node.value.split_info.parts_count

integer

Number of parts, in which the order was split.

initial_routes[].route[].node.value.split_info.units

number

Size of this part in custom units (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.split_info.volume_cbm

number

Volume of this part, cubic meters (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.split_info.weight_kg

number

Weight of this part, kilograms (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.total_service_duration_s

number

Total duration of service at a location, it includes service_duration_s, added_shared_service_duration_s` parking_service_duration_sandservice_waiting_duration_s`.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.trailer_decoupled

boolean

initial_routes[].route[].node.value.trailer_used

boolean

initial_routes[].route[].node.value.undroppable

boolean

Location cannot be dropped

initial_routes[].route[].node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of missing required tags.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • REQUIRED_TAGS_VIOLATION - the vehicle doesn't have required tags.
Allowed values
  1. REQUIRED_TAGS_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of present excluded tags.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • EXCLUDED_TAGS_VIOLATION - the order has the vehicle's excluded tags.
Allowed values
  1. EXCLUDED_TAGS_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile load type pairs

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[] *

array

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[].other_type *

string

Load type of the incompatible order.

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[].self_type *

string

Load type of the current order.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_LOAD_TYPES_VIOLATION - the order is incompatible with other order in run by load types.
Allowed values
  1. INCOMPATIBLE_LOAD_TYPES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile zone pairs

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[] *

array

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[].other_zone *

string

Load type of the incompatible order.

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[].self_zone *

string

Load type of the current order.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_ZONES_VIOLATION - the order is incompatible with other order in run by zones.
Allowed values
  1. INCOMPATIBLE_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of vehicle's allowed zones.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • ALLOWED_ZONES_VIOLATION - location doesn't belong to any of vehicle's allowed zones.
Allowed values
  1. ALLOWED_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of present forbidden zones.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FORBIDDEN_ZONES_VIOLATION - location belongs to some of the vehicle's forbidden zones.
Allowed values
  1. FORBIDDEN_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].route[].node.value.zones[]

array

List of zones.

initial_routes[].route[].node.type

string

Type of a route component.

Allowed values
  1. location

initial_routes[].route[].node.value *

object

A representation of a location in initial routes

initial_routes[].route[].node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].route[].node.value.added_shared_service_duration_s

number

Added duration of shared service, for first order in multi-order equals to shared_service_duration_sFor other orders in multi-order maybe non-zero,if shared_service_duration_s of current order is more than shared_service_duration_s of previous orders

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.anchor_mode

string

Default value: Undefined.

Allowed values
  1. Decoupling
  2. Rolling
  3. Coupling
  4. Undefined

initial_routes[].route[].node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].route[].node.value.delivery_deadline

string

Time by which the pickup order without specified delivery_to field should be delivered to any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].route[].node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].route[].node.value.fixed_run

boolean

Order can only be added in the run in which it was planned

initial_routes[].route[].node.value.fixed_shift

boolean

Order can only be added in the shift in which it was planned

initial_routes[].route[].node.value.fixed_vehicle

boolean

Order can only be taken by the vehicle in which it was planned

initial_routes[].route[].node.value.id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.keep_in_vehicle

boolean

When order is dropped it still takes space in the vehicle

initial_routes[].route[].node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].route[].node.value.parking_mode

string

Default value: Undefined.

Allowed values
  1. ParkingBegin
  2. ParkingRefill
  3. ParkingEnd
  4. Undefined

initial_routes[].route[].node.value.parking_type

string

Allowed values
  1. trailer
  2. vehicle

initial_routes[].route[].node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].route[].node.value.pickup_id

object

ID of a pickup corresponding to this delivery.

initial_routes[].route[].node.value.pickup_ids[]

array

List of IDs of pickups corresponding to this delivery.

One Of:

initial_routes[].route[].node.value.service_waiting_duration_s

number

Duration of waiting for service at a location. It can be non-zero when, for example, an order is a part of a multi-order, in this case waiting duration includes duration of service of the other orders from the multi-order.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.split_info

object

Information about split part of the order (in case if the order was split)

initial_routes[].route[].node.value.split_info.order_ratio

number

Order ratio, included in this part.

initial_routes[].route[].node.value.split_info.part_id

integer

Number of this part of the order.

initial_routes[].route[].node.value.split_info.parts_count

integer

Number of parts, in which the order was split.

initial_routes[].route[].node.value.split_info.units

number

Size of this part in custom units (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.split_info.volume_cbm

number

Volume of this part, cubic meters (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.split_info.weight_kg

number

Weight of this part, kilograms (in case there was corresponding quant specified for this order).

initial_routes[].route[].node.value.total_service_duration_s

number

Total duration of service at a location, it includes service_duration_s, added_shared_service_duration_s` parking_service_duration_sandservice_waiting_duration_s`.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.trailer_decoupled

boolean

initial_routes[].route[].node.value.trailer_used

boolean

initial_routes[].route[].node.value.undroppable

boolean

Location cannot be dropped

initial_routes[].route[].node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].route[].node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].route[].node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of missing required tags.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • REQUIRED_TAGS_VIOLATION - the vehicle doesn't have required tags.
Allowed values
  1. REQUIRED_TAGS_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of present excluded tags.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • EXCLUDED_TAGS_VIOLATION - the order has the vehicle's excluded tags.
Allowed values
  1. EXCLUDED_TAGS_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile load type pairs

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[] *

array

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[].other_type *

string

Load type of the incompatible order.

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].types[].self_type *

string

Load type of the current order.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_LOAD_TYPES_VIOLATION - the order is incompatible with other order in run by load types.
Allowed values
  1. INCOMPATIBLE_LOAD_TYPES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile zone pairs

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[] *

array

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[].other_zone *

string

Load type of the incompatible order.

initial_routes[].route[].node.value.unfeasible_reasons[].incompatibilities[].zones[].self_zone *

string

Load type of the current order.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_ZONES_VIOLATION - the order is incompatible with other order in run by zones.
Allowed values
  1. INCOMPATIBLE_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of vehicle's allowed zones.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • ALLOWED_ZONES_VIOLATION - location doesn't belong to any of vehicle's allowed zones.
Allowed values
  1. ALLOWED_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].tags[] *

array

List of present forbidden zones.

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FORBIDDEN_ZONES_VIOLATION - location belongs to some of the vehicle's forbidden zones.
Allowed values
  1. FORBIDDEN_ZONES_VIOLATION

initial_routes[].route[].node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].route[].node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].route[].node.value.zones[]

array

List of zones.

initial_routes[].route[].node.type

string

Type of a route component.

Allowed values
  1. break

initial_routes[].route[].node.value *

object

A representation of a work break in initial routes

initial_routes[].route[].node.value.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

initial_routes[].route[].node.value.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

initial_routes[].route[].node.value.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

initial_routes[].route[].node.value.chain_number

integer

Sequential number of a work break chain to which the break belongs.

initial_routes[].route[].node.value.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.value.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.value.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].route[].node.value.fixed_run

boolean

Order can only be added in the run in which it was planned

initial_routes[].route[].node.value.fixed_shift

boolean

Order can only be added in the shift in which it was planned

initial_routes[].route[].node.value.fixed_vehicle

boolean

Order can only be taken by the vehicle in which it was planned

initial_routes[].route[].node.value.keep_in_vehicle

boolean

When order is dropped it still takes space in the vehicle

initial_routes[].route[].node.value.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

initial_routes[].route[].node.value.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.repeatable

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.

initial_routes[].route[].node.value.rest_duration_s

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.value.undroppable

boolean

Location cannot be dropped

initial_routes[].route[].node.value.work_duration_s

number

Duration of continuous work before the break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].route[].node.value.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.value.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].route[].node.type

string

Type of a route component.

Allowed values
  1. courier

initial_routes[].route[].node.value *

object

initial_routes[].route[].node.value.location_id *

string

Id of current location

initial_routes[].route[].node.value.passed_time_s

number

Time passed after courier leave current location. Consider that courier has not yet arrived to the next location.

initial_routes[].route[].waiting_duration_s

number

Waiting duration, time spent at location after arrival and before the start of the time window, seconds.

initial_routes[].shift

object

initial_routes[].shift.balanced_group_id

string

ID of a corresponding balanced group of routes (see the option balanced_groups).

initial_routes[].shift.end

object

Route node, contains information about a visited location or a work break, transit information and arrival time.

initial_routes[].shift.end.actual_arrival_time_s

number

Actual arrival time at the location.

initial_routes[].shift.end.actual_departure_time_s

number

Actual time of departure from the location.

initial_routes[].shift.end.actual_service_start_time_s

number

Actual time of service start in the location.

initial_routes[].shift.end.actual_waiting_duration_s

number

Waiting duration, time spent at location after arrival and before the start of the time window, seconds.

initial_routes[].shift.end.arrival_time_s *

number

Arrival time at the location. Arrival happened before the start of the time window, will incur waiting time.

initial_routes[].shift.end.departure_time_s

number

Time of departure from the location.

initial_routes[].shift.end.failed_time_window

object

initial_routes[].shift.end.failed_time_window.duration_s *

number

When a location is visited outside of the time window, indicates the duration (in seconds) between the reference time and the closest endpoint of the failed time window. The reference time is the start or the end of service depending on penalize_late_service.

initial_routes[].shift.end.failed_time_window.how *

string

When a location is visited outside of the time window, indicates the time direction between the arrival time and the failed time window:

  • EARLY - arrival and service start are before the start of the time window;
  • LATE - arrival or service finish (depending on penalize_late_service) is after the end of the time window.
Allowed values
  1. EARLY
  2. LATE

initial_routes[].shift.end.load_to_head[]

array

List of orders that should be loaded to the head of the vehicle at depot or anchor location, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].shift.end.load_to_trailer[]

array

List of orders that should be loaded to the trailer of the vehicle at depot, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].shift.end.multi_order

boolean

An order is one of several orders at exactly the same location which are served together. Arrival time is the same for all orders in the group, also the orders share shared_service_duration_s. Total service duration of all orders in multi-order group is computed as: max(shared_service_duration_s) + sum(service_duration_s).

initial_routes[].shift.end.node *

object

Route component.

initial_routes[].shift.end.node.type *

string

Type of a route component.

Allowed values
  1. depot

initial_routes[].shift.end.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.end.node.value *

object

Description of a location.

initial_routes[].shift.end.node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].shift.end.node.value.address

string

Address of the location.

initial_routes[].shift.end.node.value.crossdock_safety_waiting_duration_s

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: 0.
Maximum value: 3.1536e+09.
Default value: 3600.

initial_routes[].shift.end.node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].shift.end.node.value.description

string

Location description.

initial_routes[].shift.end.node.value.finish_service_duration_s

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: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.end.node.value.flexible_start_time

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
Also when flexible_start_time option is used, the solver can generate routes where arrival time is very close to end of the time window. It is often undesired route plans, because there is a risk of being late on such locations. An option minimize_lateness_risk and/or penalize_late_service is recommended to be used together with flexible_start_time to avoid such routes.

initial_routes[].shift.end.node.value.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.hard_window

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

initial_routes[].shift.end.node.value.id *

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

initial_routes[].shift.end.node.value.load_service_duration_s

number

Additional duration for loading delivery orders into a vehicle, added only if there is at least one delivery order,loaded in this depot.

Minimum value: 0.

initial_routes[].shift.end.node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].shift.end.node.value.package_throughput

object

Restriction on packaging speed in depot.

initial_routes[].shift.end.node.value.package_throughput.kg_per_hour

object

initial_routes[].shift.end.node.value.package_throughput.kg_per_hour.time_window

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.

initial_routes[].shift.end.node.value.package_throughput.kg_per_hour.value

number

Depot package throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.package_throughput.units_per_hour

object

initial_routes[].shift.end.node.value.package_throughput.units_per_hour.time_window

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.

initial_routes[].shift.end.node.value.package_throughput.units_per_hour.value

number

Depot package throughput, units per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.penalty

object

Penalties for depot time window or throughput failure. More information

initial_routes[].shift.end.node.value.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.end.node.value.penalty.early.fixed

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: 1000.

initial_routes[].shift.end.node.value.penalty.early.minute

number

Penalty for each minute of early service of the depot. Applied in the same cases as the fixed penalty.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.end.node.value.penalty.late.fixed

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: 1000.

initial_routes[].shift.end.node.value.penalty.late.minute

number

Penalty for each minute of lateness for every visit of the depot after the end of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.end.node.value.penalty.out_of_time.fixed

number

Fixed penalty applied if the depot is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.out_of_time.minute

number

Penalty for each minute of being outside of the time window of the depot. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.package_throughput

object

Penalty components for package throughput exceeding.

initial_routes[].shift.end.node.value.penalty.package_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.package_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.end.node.value.penalty.package_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.end.node.value.penalty.throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.end.node.value.penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.end.node.value.penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.end.node.value.penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.end.node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].shift.end.node.value.point

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.value.point.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.value.point.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.value.preliminary_service_duration_s

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 depot_ready_time of deliveries that are loaded at this vehicle. More information

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.preset_id

string

Preset number for depot properties.

initial_routes[].shift.end.node.value.ref

string

Location reference.

initial_routes[].shift.end.node.value.routing_mode

string

The transportation method used to reach this location.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

initial_routes[].shift.end.node.value.service_duration_s

object

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

initial_routes[].shift.end.node.value.service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.throughput

object

Depot throughput limit. More information

initial_routes[].shift.end.node.value.throughput.kg_per_hour

object

initial_routes[].shift.end.node.value.throughput.kg_per_hour.time_window

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.

initial_routes[].shift.end.node.value.throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.throughput.units_per_hour

object

initial_routes[].shift.end.node.value.throughput.units_per_hour.time_window

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.

initial_routes[].shift.end.node.value.throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.throughput.vehicle_count

object

initial_routes[].shift.end.node.value.throughput.vehicle_count.time_window

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.

initial_routes[].shift.end.node.value.throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.end.node.value.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_loading

object

Time windows when the vehicle is allowed to leave the depot on the 1st run

initial_routes[].shift.end.node.value.time_windows_loading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_loading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.end.node.value.time_windows_loading.penalty

object

initial_routes[].shift.end.node.value.time_windows_loading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.end.node.value.time_windows_loading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_loading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_loading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_loading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.end.node.value.time_windows_loading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_loading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_refilling

object

Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading

initial_routes[].shift.end.node.value.time_windows_refilling.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_refilling.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty

object

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_refilling.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_refilling.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_refilling.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.end.node.value.time_windows_refilling.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_refilling.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_unloading

object

Time windows when the vehicle is allowed to return to the depot on the last run

initial_routes[].shift.end.node.value.time_windows_unloading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_unloading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty

object

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.end.node.value.time_windows_unloading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.end.node.value.time_windows_unloading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows_unloading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.end.node.value.time_windows_unloading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows_unloading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.title

string

Location title.

initial_routes[].shift.end.node.value.total_service_duration_s

number

Total duration of service at a depot (equals to service_duration_s).

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.trailer_decoupled

boolean

initial_routes[].shift.end.node.value.trailer_used

boolean

initial_routes[].shift.end.node.value.type

string

Defines a type of depot: depot or crossdock.

  • depot — the main depot where orders are stored.
  • crossdock — the additional depot where there are no orders initially. To deliver orders from this depot, another vehicle must first deliver them here from the main depot where they are stored.

Default value: depot.

Allowed values
  1. depot
  2. crossdock

initial_routes[].shift.end.node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].shift.end.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.end.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.end.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.end.node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].shift.end.node.value.unload_service_duration_s

number

Additional duration for unloading pickup orders from a vehicle, added only if there is at least one pickup order,delivered in this depot.

Minimum value: 0.

initial_routes[].shift.end.node.value.use_in_proximity

boolean

When false, this depot will be ignored in computation of proximity and global proximity. When true, this depot will be used in computation of proximity and global proximity.If parameter is not defined, this depot will be used in computation of proximity in compatible mode.

initial_routes[].shift.end.node.type *

string

Type of a route component.

Allowed values
  1. location

initial_routes[].shift.end.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.end.node.value *

object

Description of a location.

initial_routes[].shift.end.node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].shift.end.node.value.added_shared_service_duration_s

number

Added duration of shared service, for first order in multi-order equals to shared_service_duration_sFor other orders in multi-order maybe non-zero,if shared_service_duration_s of current order is more than shared_service_duration_s of previous orders

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.address

string

Address of the location.

initial_routes[].shift.end.node.value.allow_trailers

boolean

When true, vehicles with trailers can arrive at this location. Otherwise, they will have to leave the trailer at an anchor location beforehand. [More information](https://yandex.ru/routing/doc/vrp/concepts/properties-of-vehicles.html?lang=en#coupling

initial_routes[].shift.end.node.value.anchor_mode

string

Default value: Undefined.

Allowed values
  1. Decoupling
  2. Rolling
  3. Coupling
  4. Undefined

initial_routes[].shift.end.node.value.can_be_merged

boolean

An order can be a part of multiorder

Default value: true.

initial_routes[].shift.end.node.value.can_be_split

boolean

An order can be split into parts between different vehicles.

initial_routes[].shift.end.node.value.client_id

object

Defines id of a client corresponding to the location.

initial_routes[].shift.end.node.value.client_service_duration_s

object

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.

initial_routes[].shift.end.node.value.client_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.client_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.comments

string

Comments.

initial_routes[].shift.end.node.value.crossdock_mode

string

Defines whether it is allowed to deliver this order through a cross-dock depot.

  • deny — prohibited, can only be delivered from a regular depot;
  • allow — allowed, can be delivered either directly from a regular depot or through a cross-dock depot;
  • mandatory — required, can only be delivered through a cross-dock depot.

Default value: allow.

Allowed values
  1. deny
  2. allow
  3. mandatory

initial_routes[].shift.end.node.value.crossdock_service_duration_s

object

Time spent at a crossdock location during the unloading of this order. More information

initial_routes[].shift.end.node.value.crossdock_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.crossdock_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.custom_value

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.

initial_routes[].shift.end.node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].shift.end.node.value.delivery_deadline

string

Time by which the pickup order without specified delivery_to field should be delivered to any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.end.node.value.delivery_to

object

Defines id of a location where to deliver the shipment.More information

initial_routes[].shift.end.node.value.delivery_to_any[]

array

A list of drop_off location ID's, the pickup location must be delivered to any of these locations. More information

One Of:

initial_routes[].shift.end.node.value.depot_duration_s

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

initial_routes[].shift.end.node.value.depot_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.depot_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

initial_routes[].shift.end.node.value.depot_id

object

initial_routes[].shift.end.node.value.depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.end.node.value.description

string

Location description.

initial_routes[].shift.end.node.value.drop_reason

string

Explanation why the location was dropped.

initial_routes[].shift.end.node.value.dropped_ratio

number

Order ratio which have to stay in drop

Minimum value: 0.
Maximum value: 1.

initial_routes[].shift.end.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.end.node.value.fixed_run

boolean

Order can only be added in the run in which it was planned

initial_routes[].shift.end.node.value.fixed_shift

boolean

Order can only be added in the shift in which it was planned

initial_routes[].shift.end.node.value.fixed_vehicle

boolean

Order can only be taken by the vehicle in which it was planned

initial_routes[].shift.end.node.value.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.hard_window

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 dropped_orders field in the response. This field is useful to model orders that cannot be completed within the time window, (e.g. due to conflicts with other orders). More information

initial_routes[].shift.end.node.value.id *

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

initial_routes[].shift.end.node.value.in_lifo_order

boolean

Orders with this field set to true are not allowed to move inside the vehicle and should be delivered in the reversed order of their pickups. Locations with this field set to false can appear anywhere in the route. This field only matters if both pickups and deliveries are present in route. More information

initial_routes[].shift.end.node.value.keep_in_vehicle

boolean

When order is dropped it still takes space in the vehicle

initial_routes[].shift.end.node.value.load_types[]

array

Defines types of location load.
mustnt be defined only for garage` location type.

initial_routes[].shift.end.node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].shift.end.node.value.max_split_parts

integer

Maximal number of parts in which the order can be split

Minimum value: 1.
Default value: 10.

initial_routes[].shift.end.node.value.max_total_vehicles

integer

Maximal number of vehicles that can be served by an anchor location. Unlimited by default. More information

initial_routes[].shift.end.node.value.may_drop_in_crossdock

boolean

May drop pickup order in crossdock location

Default value: true.

initial_routes[].shift.end.node.value.optional_tags[]

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

initial_routes[].shift.end.node.value.optional_tags[].tag *

string

An arbitrary tag.

initial_routes[].shift.end.node.value.optional_tags[].value *

number

Value of the tag. When location is served by a vehicle with a matching tag in tags field, this value is subtracted from the route cost. When the matching tag is in excluded_tags field, this value is added to the route cost.

initial_routes[].shift.end.node.value.parking_mode

string

Type of the parking node

Allowed values
  1. ParkingBegin
  2. ParkingRefill
  3. ParkingEnd

initial_routes[].shift.end.node.value.parking_service_duration_s

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.parking_type

string

Allowed values
  1. trailer
  2. vehicle

initial_routes[].shift.end.node.value.penalty

object

Penalties for non-completion and time window failure. More information

initial_routes[].shift.end.node.value.penalty.delivery_deadline

object

Penalty components for late deliveries from pickup locations to depots. Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option. More information

initial_routes[].shift.end.node.value.penalty.delivery_deadline.fixed

number

Fixed penalty applied if the depot is visited after the deadline.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.delivery_deadline.minute

number

Penalty for each minute of lateness, when the depot is visited after the deadline.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.depot_expiring_time

object

Penalty components for violation soft_depot_expiring_time restriction.

initial_routes[].shift.end.node.value.penalty.depot_expiring_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.end.node.value.penalty.depot_expiring_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.end.node.value.penalty.depot_ready_time

object

Penalty components for violation soft_depot_ready_time restriction.

initial_routes[].shift.end.node.value.penalty.depot_ready_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.end.node.value.penalty.depot_ready_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.end.node.value.penalty.drop

object

Penalty for not delivering an order. More information

initial_routes[].shift.end.node.value.penalty.drop.fixed

number

Fixed penalty for not delivering any part of the order.

initial_routes[].shift.end.node.value.penalty.drop.scaled

number

Penalty for not delivering order ratio.

Default value: 1e+06.

initial_routes[].shift.end.node.value.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.end.node.value.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.end.node.value.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.end.node.value.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.end.node.value.penalty.rolling_throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.end.node.value.penalty.rolling_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.rolling_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.end.node.value.penalty.rolling_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.end.node.value.penalty.rolling_throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.end.node.value.penalty.throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.end.node.value.penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.end.node.value.penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.end.node.value.penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.end.node.value.penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.end.node.value.penalty.time_between_visits

object

Penalty components for exceeding max_time_between_visits_s restriction.

initial_routes[].shift.end.node.value.penalty.time_between_visits.fixed

number

Penalty for each case of violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.end.node.value.penalty.time_between_visits.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.end.node.value.penalty.transit_time

object

Penalty components for exceeding transit time

initial_routes[].shift.end.node.value.penalty.transit_time.fixed

object

Fixed penalty applied if the order was delivered with a violation of the soft transit time limit

initial_routes[].shift.end.node.value.penalty.transit_time.minute

object

Penalty for each minute transit time violation

initial_routes[].shift.end.node.value.phone

string

Phone number of delivery receiver.

initial_routes[].shift.end.node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].shift.end.node.value.pickup_from_any

boolean

Delivery-orders that have this field set to true must have multiple pickup orders associated with it. Any one of these pickup orders can be selected for delivery, and the rest will be ignored. The choice among the options is based on optimizing the cost of the route. More information

initial_routes[].shift.end.node.value.pickup_id

object

ID of a pickup corresponding to this delivery.

initial_routes[].shift.end.node.value.pickup_ids[]

array

List of IDs of pickups corresponding to this delivery.

One Of:

initial_routes[].shift.end.node.value.pickup_must_reach_depot

boolean

The field determines whether the pickup is considered serviced if it is not delivered depot. The field shouldnt be defined for types other than pickup. The field is mutually exclusive with fields delivery_to and delivery_to_any. If depot_id is defined and not empty then the field is considered as True and the value to False in not acceptable.

initial_routes[].shift.end.node.value.point

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.value.point.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.value.point.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.value.preset_id

string

Preset number for location properties.

initial_routes[].shift.end.node.value.quant

object

initial_routes[].shift.end.node.value.quant.units

number

Size of shipment in custom units.

Minimum value: 0.

initial_routes[].shift.end.node.value.quant.volume_cbm

number

Volume of minimal part, cubic meters.

Minimum value: 0.

initial_routes[].shift.end.node.value.quant.weight_kg

number

Weight of minimal part, kilograms.

Minimum value: 0.

initial_routes[].shift.end.node.value.ref

string

Location reference.

initial_routes[].shift.end.node.value.required_tags[]

array

List of tags a vehicle must have to arrive at the location. More information

initial_routes[].shift.end.node.value.rolling_throughput

object

Rolling throughput limit (supported for anchors).

initial_routes[].shift.end.node.value.rolling_throughput.kg_per_hour

object

initial_routes[].shift.end.node.value.rolling_throughput.kg_per_hour.time_window

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.

initial_routes[].shift.end.node.value.rolling_throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.rolling_throughput.units_per_hour

object

initial_routes[].shift.end.node.value.rolling_throughput.units_per_hour.time_window

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.

initial_routes[].shift.end.node.value.rolling_throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.rolling_throughput.vehicle_count

object

initial_routes[].shift.end.node.value.rolling_throughput.vehicle_count.time_window

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.

initial_routes[].shift.end.node.value.rolling_throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.routing_mode

string

The transportation method used to reach this location.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

initial_routes[].shift.end.node.value.sequence_order

integer

All locations in vehicle route with specified sequence_order option have to be visited in non-decreasing order of its values. More information

initial_routes[].shift.end.node.value.service_duration_s

object

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

initial_routes[].shift.end.node.value.service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_durations

object

Structure storing location service durations.

initial_routes[].shift.end.node.value.service_durations.client

object

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.

initial_routes[].shift.end.node.value.service_durations.client.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_durations.client.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_durations.crossdock

object

Time spent at a crossdock location during the unloading of this order. More information

initial_routes[].shift.end.node.value.service_durations.crossdock.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_durations.crossdock.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_durations.depot

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

initial_routes[].shift.end.node.value.service_durations.depot.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_durations.depot.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_durations.location

object

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

initial_routes[].shift.end.node.value.service_durations.location.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_durations.location.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_durations.parking

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.service_durations.stop

object

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

initial_routes[].shift.end.node.value.service_durations.stop.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.service_durations.stop.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.service_waiting_duration_s

number

Duration of waiting for service at a location. It can be non-zero when, for example, an order is a part of a multi-order, in this case waiting duration includes duration of service of the other orders from the multi-order.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.shared_service_duration_s

object

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

initial_routes[].shift.end.node.value.shared_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.end.node.value.shared_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.end.node.value.shared_with_company_ids[]

array

IDs of the companies that can access the order information.

initial_routes[].shift.end.node.value.shipment_size

object

Shipment size (dimensions and/or weight). More information

initial_routes[].shift.end.node.value.shipment_size.custom

object

Size of shipment in custom units. Sizes in custom units are defined in format "name": size, where name is a string denoting the name of a unit, and size is a non-negative floating-point number denoting the quantity of the corresponding unit in the shipment. If the name of a unit is present in other objects (locations/vehicles/trailers), but not this, it is assumed that the quantity of this unit in the shipment is zero. More information

initial_routes[].shift.end.node.value.shipment_size.units

number

Size of shipment in custom units.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.shipment_size.volume

object

Shipment dimensions and type.

initial_routes[].shift.end.node.value.shipment_size.volume.align

string

Defines allowed container alignment for rigid and fixed_bottom types (ignored for bulk containers):

  • all_axes — default, all axes of the box must be parallel to vehicle's axes;
  • height — the bottom of the box lies on a horizontal surface, but any rotation around the vertical axis (height) is allowed (note that any side can become a bottom for rigid containers).
    More information

Default value: all_axes.

Allowed values
  1. all_axes
  2. height

initial_routes[].shift.end.node.value.shipment_size.volume.depth_m *

number

Depth, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.end.node.value.shipment_size.volume.height_m *

number

Height, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.end.node.value.shipment_size.volume.type

string

Container type:

  • bulk — default type, shape can be changed arbitrary to fit the vehicle;
  • rigid — container is a box that must fit vehicle dimensions under some orientation;
  • fixed_bottom — the bottom of the box must stay the same, but the box can be rotated horizontally (height must fit vehicle's height).
    More information

Default value: bulk.

Allowed values
  1. bulk
  2. rigid
  3. fixed_bottom

initial_routes[].shift.end.node.value.shipment_size.volume.width_m *

number

Width, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.end.node.value.shipment_size.volume_cbm

number

Explicit volume, cubic meters. By default, the value is taken from "volume", if nothing is specified here.

Minimum value: 0.

initial_routes[].shift.end.node.value.shipment_size.weight_kg

number

Weight of shipment, kilograms.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.soft_depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

initial_routes[].shift.end.node.value.soft_depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.end.node.value.split_info

object

Information about split part of the order (in case if the order was split)

initial_routes[].shift.end.node.value.split_info.order_ratio

number

Order ratio, included in this part.

initial_routes[].shift.end.node.value.split_info.part_id

integer

Number of this part of the order.

initial_routes[].shift.end.node.value.split_info.parts_count

integer

Number of parts, in which the order was split.

initial_routes[].shift.end.node.value.split_info.units

number

Size of this part in custom units (in case there was corresponding quant specified for this order).

initial_routes[].shift.end.node.value.split_info.volume_cbm

number

Volume of this part, cubic meters (in case there was corresponding quant specified for this order).

initial_routes[].shift.end.node.value.split_info.weight_kg

number

Weight of this part, kilograms (in case there was corresponding quant specified for this order).

initial_routes[].shift.end.node.value.split_parts_must_fill_whole_vehicle

boolean

Parts, split from a splittable order, should fill the whole vehicle.

initial_routes[].shift.end.node.value.throughput

object

Location throughput limit (supported for the orders which can be split).

initial_routes[].shift.end.node.value.throughput.kg_per_hour

object

initial_routes[].shift.end.node.value.throughput.kg_per_hour.time_window

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.

initial_routes[].shift.end.node.value.throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.throughput.units_per_hour

object

initial_routes[].shift.end.node.value.throughput.units_per_hour.time_window

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.

initial_routes[].shift.end.node.value.throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.end.node.value.throughput.vehicle_count

object

initial_routes[].shift.end.node.value.throughput.vehicle_count.time_window

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.

initial_routes[].shift.end.node.value.throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.end.node.value.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.end.node.value.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.value.title

string

Location title.

initial_routes[].shift.end.node.value.total_service_duration_s

number

Total duration of service at a location, it includes service_duration_s, added_shared_service_duration_s` parking_service_duration_sandservice_waiting_duration_s`.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.trailer_decoupled

boolean

initial_routes[].shift.end.node.value.trailer_used

boolean

initial_routes[].shift.end.node.value.transit_time

object

Restrictions on the time the order spends inside a vehicle

initial_routes[].shift.end.node.value.transit_time.hard_limit_s

number

Hard time limit, values above it are unacceptable

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.transit_time.limit_s

number

Soft time limit, values above it are acceptable but they will be penalized

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.end.node.value.type

string

Defines a type of service at the location: delivery, pickup, drop_off or garage.

  • delivery — the load is picked up at the depot or at another location, and delivered to this location;
  • pickup — the load is picked up at this location, and delivered to another location (if delivery_to is specified), or to the depot;
  • drop_off — a pickup location may be delivered to any of related drop_off locations (see delivery_to_any`);
  • garage — a location which can be used as the first or the last vehicle location via start_at or finish_at vehicle option;
  • anchor — a location where trailers can be dropped and unloaded;
  • parking — a location where trailers can be dropped to serve a single other location. Trailers can not be unloaded there.
  • rest_place — a designated location where a vehicle can break work in cases when the work_break has the attribute "at_rest_place".
    More information

Default value: delivery.

Allowed values
  1. depot
  2. crossdock
  3. delivery
  4. pickup
  5. drop_off
  6. garage
  7. anchor
  8. parking
  9. rest_place

initial_routes[].shift.end.node.value.undroppable

boolean

Location cannot be dropped

initial_routes[].shift.end.node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].shift.end.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.end.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.end.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.end.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.end.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.end.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.end.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.end.node.value.unfeasible_reasons[].tags[] *

array

List of missing required tags.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • REQUIRED_TAGS_VIOLATION - the vehicle doesn't have required tags.
Allowed values
  1. REQUIRED_TAGS_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].tags[] *

array

List of present excluded tags.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • EXCLUDED_TAGS_VIOLATION - the order has the vehicle's excluded tags.
Allowed values
  1. EXCLUDED_TAGS_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile load type pairs

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].types[] *

array

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].types[].other_type *

string

Load type of the incompatible order.

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].types[].self_type *

string

Load type of the current order.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_LOAD_TYPES_VIOLATION - the order is incompatible with other order in run by load types.
Allowed values
  1. INCOMPATIBLE_LOAD_TYPES_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile zone pairs

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].zones[] *

array

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].zones[].other_zone *

string

Load type of the incompatible order.

initial_routes[].shift.end.node.value.unfeasible_reasons[].incompatibilities[].zones[].self_zone *

string

Load type of the current order.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_ZONES_VIOLATION - the order is incompatible with other order in run by zones.
Allowed values
  1. INCOMPATIBLE_ZONES_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].tags[] *

array

List of vehicle's allowed zones.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • ALLOWED_ZONES_VIOLATION - location doesn't belong to any of vehicle's allowed zones.
Allowed values
  1. ALLOWED_ZONES_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].tags[] *

array

List of present forbidden zones.

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FORBIDDEN_ZONES_VIOLATION - location belongs to some of the vehicle's forbidden zones.
Allowed values
  1. FORBIDDEN_ZONES_VIOLATION

initial_routes[].shift.end.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.end.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].shift.end.node.value.use_in_proximity

boolean

When false, this location will be ignored in computation of proximity and global proximity. More information

Default value: true.

initial_routes[].shift.end.node.type *

string

Type of a route component.

Allowed values
  1. break

initial_routes[].shift.end.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.end.node.value *

object

Description of a work break.

initial_routes[].shift.end.node.value.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

initial_routes[].shift.end.node.value.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

initial_routes[].shift.end.node.value.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

initial_routes[].shift.end.node.value.chain_number

integer

Sequential number of a work break chain to which the break belongs.

initial_routes[].shift.end.node.value.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.value.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.value.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.end.node.value.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

initial_routes[].shift.end.node.value.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.penalty

object

Penalties applied for violations of work break conditions.

initial_routes[].shift.end.node.value.penalty.early

object

Penalty components for early work break.

initial_routes[].shift.end.node.value.penalty.early.fixed

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: 1000.

initial_routes[].shift.end.node.value.penalty.early.minute

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: 17.

initial_routes[].shift.end.node.value.penalty.late

object

Penalty components for late work break.

initial_routes[].shift.end.node.value.penalty.late.fixed

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: 1000.

initial_routes[].shift.end.node.value.penalty.late.minute

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: 17.

initial_routes[].shift.end.node.value.repeatable

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.

initial_routes[].shift.end.node.value.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.value.type

string

Type of work break. Used in merge_with_types field.

initial_routes[].shift.end.node.value.work_duration_s

number

Duration of continuous work before the break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.end.node.value.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.value.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.end.node.type *

string

Type of a route component.

Allowed values
  1. courier

initial_routes[].shift.end.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.end.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.end.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.end.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.end.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.end.node.value *

object

initial_routes[].shift.end.node.value.location_id *

string

Id of current location

initial_routes[].shift.end.node.value.passed_time_s

number

Time passed after courier leave current location. Consider that courier has not yet arrived to the next location.

initial_routes[].shift.end.overtime

object

initial_routes[].shift.end.overtime.duration_s *

number

Vehicle shift overtime in seconds.

initial_routes[].shift.end.probably_failed_time_window

object

initial_routes[].shift.end.probably_failed_time_window.duration_s *

number

Expected difference between arrival time and failing time window, seconds.

initial_routes[].shift.end.probably_failed_time_window.high_risk

boolean

When true, it means that probability of being late on location is greater or equal to critical_lateness_risk_probability.

initial_routes[].shift.end.probably_failed_time_window.how *

string

When a location is visited outside of the time window, indicates the time direction between the arrival time and the failed time window:

  • EARLY - arrival and service start are before the start of the time window;
  • LATE - arrival or service finish (depending on penalize_late_service) is after the end of the time window.
Allowed values
  1. EARLY
  2. LATE

initial_routes[].shift.end.probably_failed_time_window.probability *

number

Probability of being outside of the time window, percent.

initial_routes[].shift.end.stop_sequence_number

integer

Sequence number of a stop (among delivery, pickup and drop_off locations)

initial_routes[].shift.end.transit_distance_m *

number

Transit distance to a location, meters. If routing_mode is set to "transit", only pedestrian distance part of the route is considered.

initial_routes[].shift.end.transit_duration_s *

number

Transit time to a location, seconds.

initial_routes[].shift.end.violations[]

array

List of violations.

One Of:

initial_routes[].shift.end.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.end.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.end.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.end.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.end.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.end.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.end.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.end.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.end.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.end.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.end.violations[].high_risk *

boolean

When true, it means that probability of being late on location is greater or equal to critical_lateness_risk_probability.

initial_routes[].shift.end.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.end.violations[].probability *

number

Probability of being late, percent.

initial_routes[].shift.end.violations[].type *

string

Possible reasons:

  • PROBABLY_FAILED_DELIVERY_DEADLINE - depot may be visited after deadline of some pickup with nonzero probability.
Allowed values
  1. FAILED_DELIVERY_DEADLINE
  2. PROBABLY_FAILED_DELIVERY_DEADLINE

initial_routes[].shift.end.waiting_duration_s

number

Waiting duration, time spent at location after arrival and before the start of the time window, seconds.

initial_routes[].shift.id *

string

Unique identifier of a shift.

initial_routes[].shift.start

object

Route node, contains information about a visited location or a work break, transit information and arrival time.

initial_routes[].shift.start.actual_arrival_time_s

number

Actual arrival time at the location.

initial_routes[].shift.start.actual_departure_time_s

number

Actual time of departure from the location.

initial_routes[].shift.start.actual_service_start_time_s

number

Actual time of service start in the location.

initial_routes[].shift.start.actual_waiting_duration_s

number

Waiting duration, time spent at location after arrival and before the start of the time window, seconds.

initial_routes[].shift.start.arrival_time_s *

number

Arrival time at the location. Arrival happened before the start of the time window, will incur waiting time.

initial_routes[].shift.start.departure_time_s

number

Time of departure from the location.

initial_routes[].shift.start.failed_time_window

object

initial_routes[].shift.start.failed_time_window.duration_s *

number

When a location is visited outside of the time window, indicates the duration (in seconds) between the reference time and the closest endpoint of the failed time window. The reference time is the start or the end of service depending on penalize_late_service.

initial_routes[].shift.start.failed_time_window.how *

string

When a location is visited outside of the time window, indicates the time direction between the arrival time and the failed time window:

  • EARLY - arrival and service start are before the start of the time window;
  • LATE - arrival or service finish (depending on penalize_late_service) is after the end of the time window.
Allowed values
  1. EARLY
  2. LATE

initial_routes[].shift.start.load_to_head[]

array

List of orders that should be loaded to the head of the vehicle at depot or anchor location, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].shift.start.load_to_trailer[]

array

List of orders that should be loaded to the trailer of the vehicle at depot, in case trailers are used. Orders are listed in the order of serving.

One Of:

initial_routes[].shift.start.multi_order

boolean

An order is one of several orders at exactly the same location which are served together. Arrival time is the same for all orders in the group, also the orders share shared_service_duration_s. Total service duration of all orders in multi-order group is computed as: max(shared_service_duration_s) + sum(service_duration_s).

initial_routes[].shift.start.node *

object

Route component.

initial_routes[].shift.start.node.type *

string

Type of a route component.

Allowed values
  1. depot

initial_routes[].shift.start.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.start.node.value *

object

Description of a location.

initial_routes[].shift.start.node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].shift.start.node.value.address

string

Address of the location.

initial_routes[].shift.start.node.value.crossdock_safety_waiting_duration_s

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: 0.
Maximum value: 3.1536e+09.
Default value: 3600.

initial_routes[].shift.start.node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].shift.start.node.value.description

string

Location description.

initial_routes[].shift.start.node.value.finish_service_duration_s

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: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.start.node.value.flexible_start_time

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
Also when flexible_start_time option is used, the solver can generate routes where arrival time is very close to end of the time window. It is often undesired route plans, because there is a risk of being late on such locations. An option minimize_lateness_risk and/or penalize_late_service is recommended to be used together with flexible_start_time to avoid such routes.

initial_routes[].shift.start.node.value.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.hard_window

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

initial_routes[].shift.start.node.value.id *

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

initial_routes[].shift.start.node.value.load_service_duration_s

number

Additional duration for loading delivery orders into a vehicle, added only if there is at least one delivery order,loaded in this depot.

Minimum value: 0.

initial_routes[].shift.start.node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].shift.start.node.value.package_throughput

object

Restriction on packaging speed in depot.

initial_routes[].shift.start.node.value.package_throughput.kg_per_hour

object

initial_routes[].shift.start.node.value.package_throughput.kg_per_hour.time_window

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.

initial_routes[].shift.start.node.value.package_throughput.kg_per_hour.value

number

Depot package throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.package_throughput.units_per_hour

object

initial_routes[].shift.start.node.value.package_throughput.units_per_hour.time_window

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.

initial_routes[].shift.start.node.value.package_throughput.units_per_hour.value

number

Depot package throughput, units per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.penalty

object

Penalties for depot time window or throughput failure. More information

initial_routes[].shift.start.node.value.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.start.node.value.penalty.early.fixed

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: 1000.

initial_routes[].shift.start.node.value.penalty.early.minute

number

Penalty for each minute of early service of the depot. Applied in the same cases as the fixed penalty.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.start.node.value.penalty.late.fixed

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: 1000.

initial_routes[].shift.start.node.value.penalty.late.minute

number

Penalty for each minute of lateness for every visit of the depot after the end of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.start.node.value.penalty.out_of_time.fixed

number

Fixed penalty applied if the depot is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.out_of_time.minute

number

Penalty for each minute of being outside of the time window of the depot. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.package_throughput

object

Penalty components for package throughput exceeding.

initial_routes[].shift.start.node.value.penalty.package_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.package_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.start.node.value.penalty.package_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.start.node.value.penalty.throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.start.node.value.penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.start.node.value.penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.start.node.value.penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.start.node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].shift.start.node.value.point

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.value.point.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.value.point.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.value.preliminary_service_duration_s

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 depot_ready_time of deliveries that are loaded at this vehicle. More information

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.preset_id

string

Preset number for depot properties.

initial_routes[].shift.start.node.value.ref

string

Location reference.

initial_routes[].shift.start.node.value.routing_mode

string

The transportation method used to reach this location.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

initial_routes[].shift.start.node.value.service_duration_s

object

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

initial_routes[].shift.start.node.value.service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.throughput

object

Depot throughput limit. More information

initial_routes[].shift.start.node.value.throughput.kg_per_hour

object

initial_routes[].shift.start.node.value.throughput.kg_per_hour.time_window

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.

initial_routes[].shift.start.node.value.throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.throughput.units_per_hour

object

initial_routes[].shift.start.node.value.throughput.units_per_hour.time_window

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.

initial_routes[].shift.start.node.value.throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.throughput.vehicle_count

object

initial_routes[].shift.start.node.value.throughput.vehicle_count.time_window

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.

initial_routes[].shift.start.node.value.throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.start.node.value.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_loading

object

Time windows when the vehicle is allowed to leave the depot on the 1st run

initial_routes[].shift.start.node.value.time_windows_loading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_loading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.start.node.value.time_windows_loading.penalty

object

initial_routes[].shift.start.node.value.time_windows_loading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.start.node.value.time_windows_loading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_loading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_loading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_loading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.start.node.value.time_windows_loading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_loading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_refilling

object

Time windows when the vehicle is allowed to visit a depot (or middle depot) for additional loading

initial_routes[].shift.start.node.value.time_windows_refilling.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_refilling.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty

object

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_refilling.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_refilling.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_refilling.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.start.node.value.time_windows_refilling.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_refilling.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_unloading

object

Time windows when the vehicle is allowed to return to the depot on the last run

initial_routes[].shift.start.node.value.time_windows_unloading.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_unloading.hard_window

boolean

Time window, specified in the "time_window" field, should be hard, incompatible with the "hard_time_window" field.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty

object

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.start.node.value.time_windows_unloading.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.start.node.value.time_windows_unloading.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows_unloading.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.start.node.value.time_windows_unloading.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows_unloading.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.title

string

Location title.

initial_routes[].shift.start.node.value.total_service_duration_s

number

Total duration of service at a depot (equals to service_duration_s).

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.trailer_decoupled

boolean

initial_routes[].shift.start.node.value.trailer_used

boolean

initial_routes[].shift.start.node.value.type

string

Defines a type of depot: depot or crossdock.

  • depot — the main depot where orders are stored.
  • crossdock — the additional depot where there are no orders initially. To deliver orders from this depot, another vehicle must first deliver them here from the main depot where they are stored.

Default value: depot.

Allowed values
  1. depot
  2. crossdock

initial_routes[].shift.start.node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].shift.start.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.start.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.start.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.start.node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].shift.start.node.value.unload_service_duration_s

number

Additional duration for unloading pickup orders from a vehicle, added only if there is at least one pickup order,delivered in this depot.

Minimum value: 0.

initial_routes[].shift.start.node.value.use_in_proximity

boolean

When false, this depot will be ignored in computation of proximity and global proximity. When true, this depot will be used in computation of proximity and global proximity.If parameter is not defined, this depot will be used in computation of proximity in compatible mode.

initial_routes[].shift.start.node.type *

string

Type of a route component.

Allowed values
  1. location

initial_routes[].shift.start.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.start.node.value *

object

Description of a location.

initial_routes[].shift.start.node.value.actual_total_service_duration_s

number

Actual total duration of service at a location (according to actual_arrival_time_s and actual_departure_time_s).

initial_routes[].shift.start.node.value.added_shared_service_duration_s

number

Added duration of shared service, for first order in multi-order equals to shared_service_duration_sFor other orders in multi-order maybe non-zero,if shared_service_duration_s of current order is more than shared_service_duration_s of previous orders

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.address

string

Address of the location.

initial_routes[].shift.start.node.value.allow_trailers

boolean

When true, vehicles with trailers can arrive at this location. Otherwise, they will have to leave the trailer at an anchor location beforehand. [More information](https://yandex.ru/routing/doc/vrp/concepts/properties-of-vehicles.html?lang=en#coupling

initial_routes[].shift.start.node.value.anchor_mode

string

Default value: Undefined.

Allowed values
  1. Decoupling
  2. Rolling
  3. Coupling
  4. Undefined

initial_routes[].shift.start.node.value.can_be_merged

boolean

An order can be a part of multiorder

Default value: true.

initial_routes[].shift.start.node.value.can_be_split

boolean

An order can be split into parts between different vehicles.

initial_routes[].shift.start.node.value.client_id

object

Defines id of a client corresponding to the location.

initial_routes[].shift.start.node.value.client_service_duration_s

object

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.

initial_routes[].shift.start.node.value.client_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.client_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.comments

string

Comments.

initial_routes[].shift.start.node.value.crossdock_mode

string

Defines whether it is allowed to deliver this order through a cross-dock depot.

  • deny — prohibited, can only be delivered from a regular depot;
  • allow — allowed, can be delivered either directly from a regular depot or through a cross-dock depot;
  • mandatory — required, can only be delivered through a cross-dock depot.

Default value: allow.

Allowed values
  1. deny
  2. allow
  3. mandatory

initial_routes[].shift.start.node.value.crossdock_service_duration_s

object

Time spent at a crossdock location during the unloading of this order. More information

initial_routes[].shift.start.node.value.crossdock_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.crossdock_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.custom_value

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.

initial_routes[].shift.start.node.value.delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

initial_routes[].shift.start.node.value.delivery_deadline

string

Time by which the pickup order without specified delivery_to field should be delivered to any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.start.node.value.delivery_to

object

Defines id of a location where to deliver the shipment.More information

initial_routes[].shift.start.node.value.delivery_to_any[]

array

A list of drop_off location ID's, the pickup location must be delivered to any of these locations. More information

One Of:

initial_routes[].shift.start.node.value.depot_duration_s

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

initial_routes[].shift.start.node.value.depot_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.depot_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

initial_routes[].shift.start.node.value.depot_id

object

initial_routes[].shift.start.node.value.depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.start.node.value.description

string

Location description.

initial_routes[].shift.start.node.value.drop_reason

string

Explanation why the location was dropped.

initial_routes[].shift.start.node.value.dropped_ratio

number

Order ratio which have to stay in drop

Minimum value: 0.
Maximum value: 1.

initial_routes[].shift.start.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.start.node.value.fixed_run

boolean

Order can only be added in the run in which it was planned

initial_routes[].shift.start.node.value.fixed_shift

boolean

Order can only be added in the shift in which it was planned

initial_routes[].shift.start.node.value.fixed_vehicle

boolean

Order can only be taken by the vehicle in which it was planned

initial_routes[].shift.start.node.value.hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.hard_window

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 dropped_orders field in the response. This field is useful to model orders that cannot be completed within the time window, (e.g. due to conflicts with other orders). More information

initial_routes[].shift.start.node.value.id *

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

initial_routes[].shift.start.node.value.in_lifo_order

boolean

Orders with this field set to true are not allowed to move inside the vehicle and should be delivered in the reversed order of their pickups. Locations with this field set to false can appear anywhere in the route. This field only matters if both pickups and deliveries are present in route. More information

initial_routes[].shift.start.node.value.keep_in_vehicle

boolean

When order is dropped it still takes space in the vehicle

initial_routes[].shift.start.node.value.load_types[]

array

Defines types of location load.
mustnt be defined only for garage` location type.

initial_routes[].shift.start.node.value.loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

initial_routes[].shift.start.node.value.max_split_parts

integer

Maximal number of parts in which the order can be split

Minimum value: 1.
Default value: 10.

initial_routes[].shift.start.node.value.max_total_vehicles

integer

Maximal number of vehicles that can be served by an anchor location. Unlimited by default. More information

initial_routes[].shift.start.node.value.may_drop_in_crossdock

boolean

May drop pickup order in crossdock location

Default value: true.

initial_routes[].shift.start.node.value.optional_tags[]

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

initial_routes[].shift.start.node.value.optional_tags[].tag *

string

An arbitrary tag.

initial_routes[].shift.start.node.value.optional_tags[].value *

number

Value of the tag. When location is served by a vehicle with a matching tag in tags field, this value is subtracted from the route cost. When the matching tag is in excluded_tags field, this value is added to the route cost.

initial_routes[].shift.start.node.value.parking_mode

string

Type of the parking node

Allowed values
  1. ParkingBegin
  2. ParkingRefill
  3. ParkingEnd

initial_routes[].shift.start.node.value.parking_service_duration_s

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.parking_type

string

Allowed values
  1. trailer
  2. vehicle

initial_routes[].shift.start.node.value.penalty

object

Penalties for non-completion and time window failure. More information

initial_routes[].shift.start.node.value.penalty.delivery_deadline

object

Penalty components for late deliveries from pickup locations to depots. Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option. More information

initial_routes[].shift.start.node.value.penalty.delivery_deadline.fixed

number

Fixed penalty applied if the depot is visited after the deadline.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.delivery_deadline.minute

number

Penalty for each minute of lateness, when the depot is visited after the deadline.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.depot_expiring_time

object

Penalty components for violation soft_depot_expiring_time restriction.

initial_routes[].shift.start.node.value.penalty.depot_expiring_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.start.node.value.penalty.depot_expiring_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.start.node.value.penalty.depot_ready_time

object

Penalty components for violation soft_depot_ready_time restriction.

initial_routes[].shift.start.node.value.penalty.depot_ready_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.start.node.value.penalty.depot_ready_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.start.node.value.penalty.drop

object

Penalty for not delivering an order. More information

initial_routes[].shift.start.node.value.penalty.drop.fixed

number

Fixed penalty for not delivering any part of the order.

initial_routes[].shift.start.node.value.penalty.drop.scaled

number

Penalty for not delivering order ratio.

Default value: 1e+06.

initial_routes[].shift.start.node.value.penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

initial_routes[].shift.start.node.value.penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

initial_routes[].shift.start.node.value.penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

initial_routes[].shift.start.node.value.penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

initial_routes[].shift.start.node.value.penalty.rolling_throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.start.node.value.penalty.rolling_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.rolling_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.start.node.value.penalty.rolling_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.start.node.value.penalty.rolling_throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.start.node.value.penalty.throughput

object

Penalty components for throughput exceeding.

initial_routes[].shift.start.node.value.penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

initial_routes[].shift.start.node.value.penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

initial_routes[].shift.start.node.value.penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

initial_routes[].shift.start.node.value.penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

initial_routes[].shift.start.node.value.penalty.time_between_visits

object

Penalty components for exceeding max_time_between_visits_s restriction.

initial_routes[].shift.start.node.value.penalty.time_between_visits.fixed

number

Penalty for each case of violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

initial_routes[].shift.start.node.value.penalty.time_between_visits.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

initial_routes[].shift.start.node.value.penalty.transit_time

object

Penalty components for exceeding transit time

initial_routes[].shift.start.node.value.penalty.transit_time.fixed

object

Fixed penalty applied if the order was delivered with a violation of the soft transit time limit

initial_routes[].shift.start.node.value.penalty.transit_time.minute

object

Penalty for each minute transit time violation

initial_routes[].shift.start.node.value.phone

string

Phone number of delivery receiver.

initial_routes[].shift.start.node.value.picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

initial_routes[].shift.start.node.value.pickup_from_any

boolean

Delivery-orders that have this field set to true must have multiple pickup orders associated with it. Any one of these pickup orders can be selected for delivery, and the rest will be ignored. The choice among the options is based on optimizing the cost of the route. More information

initial_routes[].shift.start.node.value.pickup_id

object

ID of a pickup corresponding to this delivery.

initial_routes[].shift.start.node.value.pickup_ids[]

array

List of IDs of pickups corresponding to this delivery.

One Of:

initial_routes[].shift.start.node.value.pickup_must_reach_depot

boolean

The field determines whether the pickup is considered serviced if it is not delivered depot. The field shouldnt be defined for types other than pickup. The field is mutually exclusive with fields delivery_to and delivery_to_any. If depot_id is defined and not empty then the field is considered as True and the value to False in not acceptable.

initial_routes[].shift.start.node.value.point

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.value.point.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.value.point.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.value.preset_id

string

Preset number for location properties.

initial_routes[].shift.start.node.value.quant

object

initial_routes[].shift.start.node.value.quant.units

number

Size of shipment in custom units.

Minimum value: 0.

initial_routes[].shift.start.node.value.quant.volume_cbm

number

Volume of minimal part, cubic meters.

Minimum value: 0.

initial_routes[].shift.start.node.value.quant.weight_kg

number

Weight of minimal part, kilograms.

Minimum value: 0.

initial_routes[].shift.start.node.value.ref

string

Location reference.

initial_routes[].shift.start.node.value.required_tags[]

array

List of tags a vehicle must have to arrive at the location. More information

initial_routes[].shift.start.node.value.rolling_throughput

object

Rolling throughput limit (supported for anchors).

initial_routes[].shift.start.node.value.rolling_throughput.kg_per_hour

object

initial_routes[].shift.start.node.value.rolling_throughput.kg_per_hour.time_window

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.

initial_routes[].shift.start.node.value.rolling_throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.rolling_throughput.units_per_hour

object

initial_routes[].shift.start.node.value.rolling_throughput.units_per_hour.time_window

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.

initial_routes[].shift.start.node.value.rolling_throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.rolling_throughput.vehicle_count

object

initial_routes[].shift.start.node.value.rolling_throughput.vehicle_count.time_window

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.

initial_routes[].shift.start.node.value.rolling_throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.routing_mode

string

The transportation method used to reach this location.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

initial_routes[].shift.start.node.value.sequence_order

integer

All locations in vehicle route with specified sequence_order option have to be visited in non-decreasing order of its values. More information

initial_routes[].shift.start.node.value.service_duration_s

object

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

initial_routes[].shift.start.node.value.service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_durations

object

Structure storing location service durations.

initial_routes[].shift.start.node.value.service_durations.client

object

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.

initial_routes[].shift.start.node.value.service_durations.client.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_durations.client.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_durations.crossdock

object

Time spent at a crossdock location during the unloading of this order. More information

initial_routes[].shift.start.node.value.service_durations.crossdock.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_durations.crossdock.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_durations.depot

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

initial_routes[].shift.start.node.value.service_durations.depot.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_durations.depot.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_durations.location

object

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

initial_routes[].shift.start.node.value.service_durations.location.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_durations.location.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_durations.parking

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.service_durations.stop

object

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

initial_routes[].shift.start.node.value.service_durations.stop.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.service_durations.stop.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.service_waiting_duration_s

number

Duration of waiting for service at a location. It can be non-zero when, for example, an order is a part of a multi-order, in this case waiting duration includes duration of service of the other orders from the multi-order.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.shared_service_duration_s

object

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

initial_routes[].shift.start.node.value.shared_service_duration_s.fixed

number

Fixed service duration for any part of the order.

initial_routes[].shift.start.node.value.shared_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

initial_routes[].shift.start.node.value.shared_with_company_ids[]

array

IDs of the companies that can access the order information.

initial_routes[].shift.start.node.value.shipment_size

object

Shipment size (dimensions and/or weight). More information

initial_routes[].shift.start.node.value.shipment_size.custom

object

Size of shipment in custom units. Sizes in custom units are defined in format "name": size, where name is a string denoting the name of a unit, and size is a non-negative floating-point number denoting the quantity of the corresponding unit in the shipment. If the name of a unit is present in other objects (locations/vehicles/trailers), but not this, it is assumed that the quantity of this unit in the shipment is zero. More information

initial_routes[].shift.start.node.value.shipment_size.units

number

Size of shipment in custom units.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.shipment_size.volume

object

Shipment dimensions and type.

initial_routes[].shift.start.node.value.shipment_size.volume.align

string

Defines allowed container alignment for rigid and fixed_bottom types (ignored for bulk containers):

  • all_axes — default, all axes of the box must be parallel to vehicle's axes;
  • height — the bottom of the box lies on a horizontal surface, but any rotation around the vertical axis (height) is allowed (note that any side can become a bottom for rigid containers).
    More information

Default value: all_axes.

Allowed values
  1. all_axes
  2. height

initial_routes[].shift.start.node.value.shipment_size.volume.depth_m *

number

Depth, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.start.node.value.shipment_size.volume.height_m *

number

Height, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.start.node.value.shipment_size.volume.type

string

Container type:

  • bulk — default type, shape can be changed arbitrary to fit the vehicle;
  • rigid — container is a box that must fit vehicle dimensions under some orientation;
  • fixed_bottom — the bottom of the box must stay the same, but the box can be rotated horizontally (height must fit vehicle's height).
    More information

Default value: bulk.

Allowed values
  1. bulk
  2. rigid
  3. fixed_bottom

initial_routes[].shift.start.node.value.shipment_size.volume.width_m *

number

Width, meters.

Minimum value: 0.
Maximum value: 1e+06.

initial_routes[].shift.start.node.value.shipment_size.volume_cbm

number

Explicit volume, cubic meters. By default, the value is taken from "volume", if nothing is specified here.

Minimum value: 0.

initial_routes[].shift.start.node.value.shipment_size.weight_kg

number

Weight of shipment, kilograms.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.soft_depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

initial_routes[].shift.start.node.value.soft_depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

initial_routes[].shift.start.node.value.split_info

object

Information about split part of the order (in case if the order was split)

initial_routes[].shift.start.node.value.split_info.order_ratio

number

Order ratio, included in this part.

initial_routes[].shift.start.node.value.split_info.part_id

integer

Number of this part of the order.

initial_routes[].shift.start.node.value.split_info.parts_count

integer

Number of parts, in which the order was split.

initial_routes[].shift.start.node.value.split_info.units

number

Size of this part in custom units (in case there was corresponding quant specified for this order).

initial_routes[].shift.start.node.value.split_info.volume_cbm

number

Volume of this part, cubic meters (in case there was corresponding quant specified for this order).

initial_routes[].shift.start.node.value.split_info.weight_kg

number

Weight of this part, kilograms (in case there was corresponding quant specified for this order).

initial_routes[].shift.start.node.value.split_parts_must_fill_whole_vehicle

boolean

Parts, split from a splittable order, should fill the whole vehicle.

initial_routes[].shift.start.node.value.throughput

object

Location throughput limit (supported for the orders which can be split).

initial_routes[].shift.start.node.value.throughput.kg_per_hour

object

initial_routes[].shift.start.node.value.throughput.kg_per_hour.time_window

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.

initial_routes[].shift.start.node.value.throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.throughput.units_per_hour

object

initial_routes[].shift.start.node.value.throughput.units_per_hour.time_window

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.

initial_routes[].shift.start.node.value.throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

initial_routes[].shift.start.node.value.throughput.vehicle_count

object

initial_routes[].shift.start.node.value.throughput.vehicle_count.time_window

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.

initial_routes[].shift.start.node.value.throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

initial_routes[].shift.start.node.value.time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

initial_routes[].shift.start.node.value.time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.value.title

string

Location title.

initial_routes[].shift.start.node.value.total_service_duration_s

number

Total duration of service at a location, it includes service_duration_s, added_shared_service_duration_s` parking_service_duration_sandservice_waiting_duration_s`.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.trailer_decoupled

boolean

initial_routes[].shift.start.node.value.trailer_used

boolean

initial_routes[].shift.start.node.value.transit_time

object

Restrictions on the time the order spends inside a vehicle

initial_routes[].shift.start.node.value.transit_time.hard_limit_s

number

Hard time limit, values above it are unacceptable

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.transit_time.limit_s

number

Soft time limit, values above it are acceptable but they will be penalized

Minimum value: 0.
Maximum value: 1e+09.

initial_routes[].shift.start.node.value.type

string

Defines a type of service at the location: delivery, pickup, drop_off or garage.

  • delivery — the load is picked up at the depot or at another location, and delivered to this location;
  • pickup — the load is picked up at this location, and delivered to another location (if delivery_to is specified), or to the depot;
  • drop_off — a pickup location may be delivered to any of related drop_off locations (see delivery_to_any`);
  • garage — a location which can be used as the first or the last vehicle location via start_at or finish_at vehicle option;
  • anchor — a location where trailers can be dropped and unloaded;
  • parking — a location where trailers can be dropped to serve a single other location. Trailers can not be unloaded there.
  • rest_place — a designated location where a vehicle can break work in cases when the work_break has the attribute "at_rest_place".
    More information

Default value: delivery.

Allowed values
  1. depot
  2. crossdock
  3. delivery
  4. pickup
  5. drop_off
  6. garage
  7. anchor
  8. parking
  9. rest_place

initial_routes[].shift.start.node.value.undroppable

boolean

Location cannot be dropped

initial_routes[].shift.start.node.value.unfeasible_reasons[]

array

List of unfeasible reasons.

One Of:

initial_routes[].shift.start.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.start.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.start.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.start.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.start.node.value.unfeasible_reasons[].custom_type

string

Type of custom units that caused overload in case of OVERLOAD_CUSTOM.

initial_routes[].shift.start.node.value.unfeasible_reasons[].overload *

number

The overload value. The unit used depends on the overload type:

  • OVERLOAD_WEIGHT - overload in kg.
  • OVERLOAD_SIZE - extra size in custom units (units field).
  • OVERLOAD_VOLUME - excess volume in m^3.
  • OVERLOAD_CUSTOM - extra size in custom units (custom field).

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OVERLOAD_WEIGHT - vehicle was carrying over maximum defined weight,
  • OVERLOAD_SIZE - the cargo did not fit into the vehicle based on its size in custom units (units field),
  • OVERLOAD_VOLUME - the cargo volume exceeds vehicle storage space,
  • OVERLOAD_CUSTOM - the cargo did not fit into the vehicle based on its size in custom units (custom field),
Allowed values
  1. OVERLOAD_WEIGHT
  2. OVERLOAD_SIZE
  3. OVERLOAD_VOLUME
  4. OVERLOAD_CUSTOM

initial_routes[].shift.start.node.value.unfeasible_reasons[].late_duration_s *

number

The duration of late arrival, (arrival time) - (end of time window), seconds.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FAILED_HARD_TIME_WINDOW - the vehicle could not reach the location within a specified hard time window,
Allowed values
  1. FAILED_HARD_TIME_WINDOW

initial_routes[].shift.start.node.value.unfeasible_reasons[].tags[] *

array

List of missing required tags.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • REQUIRED_TAGS_VIOLATION - the vehicle doesn't have required tags.
Allowed values
  1. REQUIRED_TAGS_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].tags[] *

array

List of present excluded tags.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • EXCLUDED_TAGS_VIOLATION - the order has the vehicle's excluded tags.
Allowed values
  1. EXCLUDED_TAGS_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].overrun_s *

number

The amount of time by which the hard transit time restriction was exceeded, in seconds

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • TRANSIT_TIME_VIOLATION - cannot satisfy hard transit time requirement while fulfilling the order,
Allowed values
  1. TRANSIT_TIME_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile load type pairs

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].types[] *

array

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].types[].other_type *

string

Load type of the incompatible order.

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].types[].self_type *

string

Load type of the current order.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_LOAD_TYPES_VIOLATION - the order is incompatible with other order in run by load types.
Allowed values
  1. INCOMPATIBLE_LOAD_TYPES_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[] *

array

List of all incompatibile zone pairs

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].incompatible_order_id *

object

Reference to a location specified in locations. More information

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].zones[] *

array

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].zones[].other_zone *

string

Load type of the incompatible order.

initial_routes[].shift.start.node.value.unfeasible_reasons[].incompatibilities[].zones[].self_zone *

string

Load type of the current order.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • INCOMPATIBLE_ZONES_VIOLATION - the order is incompatible with other order in run by zones.
Allowed values
  1. INCOMPATIBLE_ZONES_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].tags[] *

array

List of vehicle's allowed zones.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • ALLOWED_ZONES_VIOLATION - location doesn't belong to any of vehicle's allowed zones.
Allowed values
  1. ALLOWED_ZONES_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].tags[] *

array

List of present forbidden zones.

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • FORBIDDEN_ZONES_VIOLATION - location belongs to some of the vehicle's forbidden zones.
Allowed values
  1. FORBIDDEN_ZONES_VIOLATION

initial_routes[].shift.start.node.value.unfeasible_reasons[].text *

string

Explanation for the reason the location was not feasible.

initial_routes[].shift.start.node.value.unfeasible_reasons[].type *

string

Possible reasons:

  • OTHER - the location is not feasible for a different reason.
Allowed values
  1. OTHER

initial_routes[].shift.start.node.value.use_in_proximity

boolean

When false, this location will be ignored in computation of proximity and global proximity. More information

Default value: true.

initial_routes[].shift.start.node.type *

string

Type of a route component.

Allowed values
  1. break

initial_routes[].shift.start.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.start.node.value *

object

Description of a work break.

initial_routes[].shift.start.node.value.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

initial_routes[].shift.start.node.value.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

initial_routes[].shift.start.node.value.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

initial_routes[].shift.start.node.value.chain_number

integer

Sequential number of a work break chain to which the break belongs.

initial_routes[].shift.start.node.value.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.value.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.value.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.value.fixed_position

boolean

It is not allowed to move location or insert other locations before it

initial_routes[].shift.start.node.value.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

initial_routes[].shift.start.node.value.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.penalty

object

Penalties applied for violations of work break conditions.

initial_routes[].shift.start.node.value.penalty.early

object

Penalty components for early work break.

initial_routes[].shift.start.node.value.penalty.early.fixed

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: 1000.

initial_routes[].shift.start.node.value.penalty.early.minute

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: 17.

initial_routes[].shift.start.node.value.penalty.late

object

Penalty components for late work break.

initial_routes[].shift.start.node.value.penalty.late.fixed

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: 1000.

initial_routes[].shift.start.node.value.penalty.late.minute

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: 17.

initial_routes[].shift.start.node.value.repeatable

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.

initial_routes[].shift.start.node.value.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.value.type

string

Type of work break. Used in merge_with_types field.

initial_routes[].shift.start.node.value.work_duration_s

number

Duration of continuous work before the break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

initial_routes[].shift.start.node.value.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.value.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

initial_routes[].shift.start.node.type *

string

Type of a route component.

Allowed values
  1. courier

initial_routes[].shift.start.node.used_hard_time_window

string

Hard time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

initial_routes[].shift.start.node.used_projection

object

WGS84 coordinate of a location. More information

initial_routes[].shift.start.node.used_projection.lat *

number

Minimum value: -90.
Maximum value: 90.

initial_routes[].shift.start.node.used_projection.lon *

number

Minimum value: -180.
Maximum value: 180.

initial_routes[].shift.start.node.used_time_window

string

Time window used to visit location or depot, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z.

initial_routes[].shift.start.node.value *

object

initial_routes[].shift.start.node.value.location_id *

string

Id of current location

initial_routes[].shift.start.node.value.passed_time_s

number

Time passed after courier leave current location. Consider that courier has not yet arrived to the next location.

initial_routes[].shift.start.overtime

object

initial_routes[].shift.start.overtime.duration_s *

number

Vehicle shift overtime in seconds.

initial_routes[].shift.start.probably_failed_time_window

object

initial_routes[].shift.start.probably_failed_time_window.duration_s *

number

Expected difference between arrival time and failing time window, seconds.

initial_routes[].shift.start.probably_failed_time_window.high_risk

boolean

When true, it means that probability of being late on location is greater or equal to critical_lateness_risk_probability.

initial_routes[].shift.start.probably_failed_time_window.how *

string

When a location is visited outside of the time window, indicates the time direction between the arrival time and the failed time window:

  • EARLY - arrival and service start are before the start of the time window;
  • LATE - arrival or service finish (depending on penalize_late_service) is after the end of the time window.
Allowed values
  1. EARLY
  2. LATE

initial_routes[].shift.start.probably_failed_time_window.probability *

number

Probability of being outside of the time window, percent.

initial_routes[].shift.start.stop_sequence_number

integer

Sequence number of a stop (among delivery, pickup and drop_off locations)

initial_routes[].shift.start.transit_distance_m *

number

Transit distance to a location, meters. If routing_mode is set to "transit", only pedestrian distance part of the route is considered.

initial_routes[].shift.start.transit_duration_s *

number

Transit time to a location, seconds.

initial_routes[].shift.start.violations[]

array

List of violations.

One Of:

initial_routes[].shift.start.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.start.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.start.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.start.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.start.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.start.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.start.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.start.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.start.violations[].type *

string

Possible reasons:

  • FAILED_DELIVERY_DEADLINE - depot is visited after deadline of some pickup.
Allowed values
  1. FAILED_DELIVERY_DEADLINE

initial_routes[].shift.start.violations[].duration_s *

object

Expected difference between arrival time and the deadline, seconds.

initial_routes[].shift.start.violations[].high_risk *

boolean

When true, it means that probability of being late on location is greater or equal to critical_lateness_risk_probability.

initial_routes[].shift.start.violations[].pickup_id *

object

Defines id of a pickup location corresponding to this deadline.

initial_routes[].shift.start.violations[].probability *

number

Probability of being late, percent.

initial_routes[].shift.start.violations[].type *

string

Possible reasons:

  • PROBABLY_FAILED_DELIVERY_DEADLINE - depot may be visited after deadline of some pickup with nonzero probability.
Allowed values
  1. FAILED_DELIVERY_DEADLINE
  2. PROBABLY_FAILED_DELIVERY_DEADLINE

initial_routes[].shift.start.waiting_duration_s

number

Waiting duration, time spent at location after arrival and before the start of the time window, seconds.

initial_routes[].vehicle_id *

object

Vehicle ID. All vehicle IDs in task must be unique and have the same type: integer or string. More information

locations[] *

array

List of locations.

locations[].address

string

Address of the location.

locations[].allow_trailers

boolean

When true, vehicles with trailers can arrive at this location. Otherwise, they will have to leave the trailer at an anchor location beforehand. [More information](https://yandex.ru/routing/doc/vrp/concepts/properties-of-vehicles.html?lang=en#coupling

locations[].can_be_merged

boolean

An order can be a part of multiorder

Default value: true.

locations[].can_be_split

boolean

An order can be split into parts between different vehicles.

locations[].client_id

object

Defines id of a client corresponding to the location.

locations[].client_service_duration_s

object

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.

locations[].client_service_duration_s.fixed

number

Fixed service duration for any part of the order.

locations[].client_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].comments

string

Comments.

locations[].crossdock_mode

string

Defines whether it is allowed to deliver this order through a cross-dock depot.

  • deny — prohibited, can only be delivered from a regular depot;
  • allow — allowed, can be delivered either directly from a regular depot or through a cross-dock depot;
  • mandatory — required, can only be delivered through a cross-dock depot.

Default value: allow.

Allowed values
  1. deny
  2. allow
  3. mandatory

locations[].crossdock_service_duration_s

object

Time spent at a crossdock location during the unloading of this order. More information

locations[].crossdock_service_duration_s.fixed

number

Fixed service duration for any part of the order.

locations[].crossdock_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].custom_value

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[].delivery_deadline

string

Time by which the pickup order without specified delivery_to field should be delivered to any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

locations[].delivery_to

object

Defines id of a location where to deliver the shipment.More information

locations[].delivery_to_any[]

array

A list of drop_off location ID's, the pickup location must be delivered to any of these locations. More information

One Of:

locations[].depot_duration_s

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

locations[].depot_duration_s.fixed

number

Fixed service duration for any part of the order.

locations[].depot_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

locations[].depot_id

object

locations[].depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

locations[].description

string

Location description.

locations[].dropped_ratio

number

Order ratio which have to stay in drop

Minimum value: 0.
Maximum value: 1.

locations[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

locations[].hard_window

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 dropped_orders field in the response. This field is useful to model orders that cannot be completed within the time window, (e.g. due to conflicts with other orders). More information

locations[].id *

object

Location ID. All locations IDs in task must be unique and have the same type: integer or string. More information

locations[].in_lifo_order

boolean

Orders with this field set to true are not allowed to move inside the vehicle and should be delivered in the reversed order of their pickups. Locations with this field set to false can appear anywhere in the route. This field only matters if both pickups and deliveries are present in route. More information

locations[].load_types[]

array

Defines types of location load.
mustnt be defined only for garage` location type.

locations[].max_split_parts

integer

Maximal number of parts in which the order can be split

Minimum value: 1.
Default value: 10.

locations[].max_total_vehicles

integer

Maximal number of vehicles that can be served by an anchor location. Unlimited by default. More information

locations[].may_drop_in_crossdock

boolean

May drop pickup order in crossdock location

Default value: true.

locations[].optional_tags[]

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[].optional_tags[].tag *

string

An arbitrary tag.

locations[].optional_tags[].value *

number

Value of the tag. When location is served by a vehicle with a matching tag in tags field, this value is subtracted from the route cost. When the matching tag is in excluded_tags field, this value is added to the route cost.

locations[].parking_service_duration_s

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

locations[].penalty

object

Penalties for non-completion and time window failure. More information

locations[].penalty.delivery_deadline

object

Penalty components for late deliveries from pickup locations to depots. Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option. More information

locations[].penalty.delivery_deadline.fixed

number

Fixed penalty applied if the depot is visited after the deadline.

Default value: 1000.

locations[].penalty.delivery_deadline.minute

number

Penalty for each minute of lateness, when the depot is visited after the deadline.

Default value: 17.

locations[].penalty.depot_expiring_time

object

Penalty components for violation soft_depot_expiring_time restriction.

locations[].penalty.depot_expiring_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

locations[].penalty.depot_expiring_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

locations[].penalty.depot_ready_time

object

Penalty components for violation soft_depot_ready_time restriction.

locations[].penalty.depot_ready_time.fixed

number

Penalty for violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

locations[].penalty.depot_ready_time.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

locations[].penalty.drop

object

Penalty for not delivering an order. More information

locations[].penalty.drop.fixed

number

Fixed penalty for not delivering any part of the order.

locations[].penalty.drop.scaled

number

Penalty for not delivering order ratio.

Default value: 1e+06.

locations[].penalty.early

object

Penalty components for early service (used instead of out_of_time penalty).

locations[].penalty.early.fixed

number

Fixed penalty applied if the location starts being served before the start of the time window.

Default value: 1000.

locations[].penalty.early.minute

number

Penalty for each minute of early arrival when the location starts being served before the start of the time window.

Default value: 17.

locations[].penalty.late

object

Penalty components for late visits (used instead of out_of_time penalty). Whether the start or the end of service during the visit is used to penalize for lateness is determined by the penalize_late_service option.

locations[].penalty.late.fixed

number

Fixed penalty applied if the location is visited after the end of the time window.

Default value: 1000.

locations[].penalty.late.minute

number

Penalty for each minute of lateness, when the location is visited after the end of the time window.

Default value: 17.

locations[].penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

locations[].penalty.out_of_time.fixed

number

Fixed penalty applied if the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

locations[].penalty.out_of_time.minute

number

Penalty for each minute of lateness or early arrival when the location is visited outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 17.

locations[].penalty.rolling_throughput

object

Penalty components for throughput exceeding.

locations[].penalty.rolling_throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

locations[].penalty.rolling_throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

locations[].penalty.rolling_throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

locations[].penalty.rolling_throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

locations[].penalty.throughput

object

Penalty components for throughput exceeding.

locations[].penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

locations[].penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

locations[].penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

locations[].penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

locations[].penalty.time_between_visits

object

Penalty components for exceeding max_time_between_visits_s restriction.

locations[].penalty.time_between_visits.fixed

number

Penalty for each case of violation, regardless of the size of the violation.

Minimum value: 0.
Default value: 1000.

locations[].penalty.time_between_visits.minute

number

Penalty for every minute of violation.

Minimum value: 0.
Default value: 17.

locations[].penalty.transit_time

object

Penalty components for exceeding transit time

locations[].penalty.transit_time.fixed

object

Fixed penalty applied if the order was delivered with a violation of the soft transit time limit

locations[].penalty.transit_time.minute

object

Penalty for each minute transit time violation

locations[].phone

string

Phone number of delivery receiver.

locations[].pickup_from_any

boolean

Delivery-orders that have this field set to true must have multiple pickup orders associated with it. Any one of these pickup orders can be selected for delivery, and the rest will be ignored. The choice among the options is based on optimizing the cost of the route. More information

locations[].pickup_must_reach_depot

boolean

The field determines whether the pickup is considered serviced if it is not delivered depot. The field shouldnt be defined for types other than pickup. The field is mutually exclusive with fields delivery_to and delivery_to_any. If depot_id is defined and not empty then the field is considered as True and the value to False in not acceptable.

locations[].point *

object

WGS84 coordinate of a location. More information

locations[].point.lat *

number

Minimum value: -90.
Maximum value: 90.

locations[].point.lon *

number

Minimum value: -180.
Maximum value: 180.

locations[].preset_id

string

Preset number for location properties.

locations[].quant

object

locations[].quant.units

number

Size of shipment in custom units.

Minimum value: 0.

locations[].quant.volume_cbm

number

Volume of minimal part, cubic meters.

Minimum value: 0.

locations[].quant.weight_kg

number

Weight of minimal part, kilograms.

Minimum value: 0.

locations[].ref

string

Location reference.

locations[].required_tags[]

array

List of tags a vehicle must have to arrive at the location. More information

locations[].rolling_throughput

object

Rolling throughput limit (supported for anchors).

locations[].rolling_throughput.kg_per_hour

object

locations[].rolling_throughput.kg_per_hour.time_window

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.

locations[].rolling_throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

locations[].rolling_throughput.units_per_hour

object

locations[].rolling_throughput.units_per_hour.time_window

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.

locations[].rolling_throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

locations[].rolling_throughput.vehicle_count

object

locations[].rolling_throughput.vehicle_count.time_window

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.

locations[].rolling_throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

locations[].sequence_order

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[].service_duration_s

object

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

locations[].service_duration_s.fixed

number

Fixed service duration for any part of the order.

locations[].service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].service_durations

object

Structure storing location service durations.

locations[].service_durations.client

object

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.

locations[].service_durations.client.fixed

number

Fixed service duration for any part of the order.

locations[].service_durations.client.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].service_durations.crossdock

object

Time spent at a crossdock location during the unloading of this order. More information

locations[].service_durations.crossdock.fixed

number

Fixed service duration for any part of the order.

locations[].service_durations.crossdock.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].service_durations.depot

object

Time spent at a depot during handling of this location (goods loading, document collection, etc.). More information

locations[].service_durations.depot.fixed

number

Fixed service duration for any part of the order.

locations[].service_durations.depot.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].service_durations.location

object

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

locations[].service_durations.location.fixed

number

Fixed service duration for any part of the order.

locations[].service_durations.location.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].service_durations.parking

number

Duration of parking at location. If the order is delivered using routing_mode` walkingortransit`, this time will not be spent. If the location was chosen as a parking for the walking part, then the time will be spent once before the start of the part.

Minimum value: 0.
Maximum value: 3.1536e+09.

locations[].service_durations.stop

object

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

locations[].service_durations.stop.fixed

number

Fixed service duration for any part of the order.

locations[].service_durations.stop.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].shared_service_duration_s

object

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

locations[].shared_service_duration_s.fixed

number

Fixed service duration for any part of the order.

locations[].shared_service_duration_s.scaled

number

Service time for a part of an order, which is multiplied by order ratio.

locations[].shared_with_company_ids[]

array

IDs of the companies that can access the order information.

locations[].shipment_size

object

Shipment size (dimensions and/or weight). More information

locations[].shipment_size.custom

object

Size of shipment in custom units. Sizes in custom units are defined in format "name": size, where name is a string denoting the name of a unit, and size is a non-negative floating-point number denoting the quantity of the corresponding unit in the shipment. If the name of a unit is present in other objects (locations/vehicles/trailers), but not this, it is assumed that the quantity of this unit in the shipment is zero. More information

locations[].shipment_size.units

number

Size of shipment in custom units.

Minimum value: 0.
Maximum value: 1e+09.

locations[].shipment_size.volume

object

Shipment dimensions and type.

locations[].shipment_size.volume.align

string

Defines allowed container alignment for rigid and fixed_bottom types (ignored for bulk containers):

  • all_axes — default, all axes of the box must be parallel to vehicle's axes;
  • height — the bottom of the box lies on a horizontal surface, but any rotation around the vertical axis (height) is allowed (note that any side can become a bottom for rigid containers).
    More information

Default value: all_axes.

Allowed values
  1. all_axes
  2. height

locations[].shipment_size.volume.depth_m *

number

Depth, meters.

Minimum value: 0.
Maximum value: 1e+06.

locations[].shipment_size.volume.height_m *

number

Height, meters.

Minimum value: 0.
Maximum value: 1e+06.

locations[].shipment_size.volume.type

string

Container type:

  • bulk — default type, shape can be changed arbitrary to fit the vehicle;
  • rigid — container is a box that must fit vehicle dimensions under some orientation;
  • fixed_bottom — the bottom of the box must stay the same, but the box can be rotated horizontally (height must fit vehicle's height).
    More information

Default value: bulk.

Allowed values
  1. bulk
  2. rigid
  3. fixed_bottom

locations[].shipment_size.volume.width_m *

number

Width, meters.

Minimum value: 0.
Maximum value: 1e+06.

locations[].shipment_size.volume_cbm

number

Explicit volume, cubic meters. By default, the value is taken from "volume", if nothing is specified here.

Minimum value: 0.

locations[].shipment_size.weight_kg

number

Weight of shipment, kilograms.

Minimum value: 0.
Maximum value: 1e+09.

locations[].soft_depot_expiring_time

string

Time by which the order must be taken from the depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z

locations[].soft_depot_ready_time

string

Time when the order is ready to be taken from any depot, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z. More information

locations[].split_parts_must_fill_whole_vehicle

boolean

Parts, split from a splittable order, should fill the whole vehicle.

locations[].throughput

object

Location throughput limit (supported for the orders which can be split).

locations[].throughput.kg_per_hour

object

locations[].throughput.kg_per_hour.time_window

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.

locations[].throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

locations[].throughput.units_per_hour

object

locations[].throughput.units_per_hour.time_window

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.

locations[].throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

locations[].throughput.vehicle_count

object

locations[].throughput.vehicle_count.time_window

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.

locations[].throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

locations[].time_window

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

locations[].time_windows[]

array

List of allowed time windows. Time windows can not overlap. Fields time_window and time_windows are mutually exclusive. Either none or all of time_window must have corresponding hard_time_window. More information

locations[].time_windows[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

locations[].time_windows[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

locations[].title

string

Location title.

locations[].transit_time

object

Restrictions on the time the order spends inside a vehicle

locations[].transit_time.hard_limit_s

number

Hard time limit, values above it are unacceptable

Minimum value: 0.
Maximum value: 1e+09.

locations[].transit_time.limit_s

number

Soft time limit, values above it are acceptable but they will be penalized

Minimum value: 0.
Maximum value: 1e+09.

locations[].type

string

Defines a type of service at the location: delivery, pickup, drop_off or garage.

  • delivery — the load is picked up at the depot or at another location, and delivered to this location;
  • pickup — the load is picked up at this location, and delivered to another location (if delivery_to is specified), or to the depot;
  • drop_off — a pickup location may be delivered to any of related drop_off locations (see delivery_to_any`);
  • garage — a location which can be used as the first or the last vehicle location via start_at or finish_at vehicle option;
  • anchor — a location where trailers can be dropped and unloaded;
  • parking — a location where trailers can be dropped to serve a single other location. Trailers can not be unloaded there.
  • rest_place — a designated location where a vehicle can break work in cases when the work_break has the attribute "at_rest_place".
    More information

Default value: delivery.

Allowed values
  1. depot
  2. crossdock
  3. delivery
  4. pickup
  5. drop_off
  6. garage
  7. anchor
  8. parking
  9. rest_place

locations[].use_in_proximity

boolean

When false, this location will be ignored in computation of proximity and global proximity. More information

Default value: true.

options *

object

Solver options. It is forbidden to specify options that are not present in the list below.

options.absolute_time

boolean

Use ISO 8601 format (YYYY-MM-DDTHH:MM:SS+HH:MM) for time_window in the result.

options.avoid_tolls

boolean

Do not use toll roads if possible (only for driving and truck routing modes). More information

options.balanced_groups[]

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 balanced_group_id field. Routes are balanced by metrics total_duration_s and/or total_stops depending on specified penalties. More information

options.balanced_groups[].id *

string

A unique ID of a balanced group of routes.

options.balanced_groups[].penalty

object

Penalties for imbalanced routes.

options.balanced_groups[].penalty.custom_value

number

Penalty per each custom_value unit of orders of root-sum-square deviation of a route custom_value unit of orders from an average number of custom_value unit of orders in a balanced group of routes.

Minimum value: 0.

options.balanced_groups[].penalty.hour

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: 0.

options.balanced_groups[].penalty.ignore_unused_vehicles

boolean

Ignore unused vehicles for the penalty calculation.

options.balanced_groups[].penalty.km

number

Penalty per km of root-sum-square deviation of a route distance from an average distance of a balanced group of routes.

Minimum value: 0.

options.balanced_groups[].penalty.served_order

number

Penalty per each missing or extra served order of root-sum-square deviation of a route served order count from an average number of served order in a balanced group of routes.

Minimum value: 0.

options.balanced_groups[].penalty.stop

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: 0.

options.balanced_groups[].penalty.unit

number

Penalty per each unit of orders weight of root-sum-square deviation of a route unit of orders weight from an average number of unit of orders weight in a balanced group of routes.

Minimum value: 0.

options.balanced_groups[].penalty.weight_kg

number

Penalty per each kg of orders weight of root-sum-square deviation of a route kg of orders weight from an average number of kg of orders weight in a balanced group of routes.

Minimum value: 0.

options.close_location_groups_radius_m

number

The distance specifying how close the locations must be to belong to the same close location group

Minimum value: 0.
Maximum value: 1e+09.

options.close_locations_during_post_optimization_only

boolean

Apply penalties defined in close_locations only during post_optimization stage. If the field is true, post-optimization must be turned on.

options.critical_lateness_risk_probability

number

If a probability of being late on a location is greater or equal than a specified value, than the location is accounted in lateness_risk_locations_count. The probability is defined in percent.

Minimum value: 1.
Maximum value: 50.
Default value: 20.

options.date

string

Starting date for all routes (YYYY-MM-DD format), defaults to current date. More information

options.enable_vehicle_classes

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: true.

options.fix_planned_shifts

boolean

Fix shifts of locations from planned routes.

options.force_merge_multiorders

boolean

Меняет поведение при включенной опции merge_multiorders - может объединить заказы, имеющие одинаковые координаты, даже если в результате ни одна машина не сможет доставить полученный заказ из-за ограничений вместимости, тегов или типов груза. Подробнее

options.global_proximity_factor

number

Level of location proximity influence on vehicle routes. Recommended values are from 0.0 to 1.0. Using this option makes locations closer to the last location in route. Using both proximity_factor and global_proximity_factor makes routes more tolerant to moving locations to the end of route. Note, that using proximity will decrease optimality of computed routes in terms of costs and penalties. More information

Minimum value: 0.
Maximum value: 10.

options.ignore_min_stops_for_unused

boolean

Ignore minimal_stops option for unused vehicles. More information

options.ignore_zones

boolean

Ignore all zone-related options in vehicles and locations. More information

options.immutable

boolean

All routes, specified in initial_routes, are used without changes, new runs can not be added.

options.incompatible_load_types[]

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.incompatible_zones[]

array

Each item in this array defines list of location zones, that should not be visited within the same vehicle run. More information

options.load_when_ready

boolean

Start load orders in depot when they are ready (in order of depot_ready_time). More information

options.location_groups[]

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.location_groups[].dependent

boolean

When true, either all or none of the locations in group will be served.

options.location_groups[].location_ids[] *

array

One Of:

options.location_groups[].solid

boolean

When true, all assigned locations in group will be served consecutively, but their order is not fixed.

options.location_groups[].title

string

options.matrix_router

string

Matrix router to be used for route planning

  • main — recommended for Russia, CIS and Turkey.
  • global — for other countries.
  • geodesic — distances are calculated directly without taking into account traffic jams.
  • auto — automatic router choice based on depot location.

Default value: main.

Allowed values
  1. main
  2. geodesic
  3. global
  4. auto

options.max_distance_to_projection_m

number

Restriction for max distance to projcetion point. Will be ignored if order has not any suitable projection

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

options.max_drop_penalty_percentage

number

Maximal relation of drop penalty to the sum of drop penalties in all orders. More information

Minimum value: 0.
Maximum value: 100.
Default value: 100.

options.max_split_orders_percentage

number

Maximal ratio of orders which can be split into parts

Minimum value: 0.
Maximum value: 100.
Default value: 100.

options.merge_multiorders

boolean

If possible merge those orders which have the same coordinates, i.e. serve them by a single vehicle. More information

options.merge_multiorders_of_different_clients

boolean

Если эта опция сброшена, то заказы с разным client_id но общей координатой будут образоывать отдельные остановки. Подробнее

Default value: true.

options.minimize_lateness_risk

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.multiorder_radius_m

number

The distance specifying how close the locations must be to be merged into a multiorder

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1.

options.penalize_late_service

boolean

This option determines whether to penalize for late arrivals or late service.

  • When false, late penalty is applied if a vehicle arrived to the location/depot or started serving the depot after the end of the time window. Note that for multi-orders the service start time of the whole multi-order is used for each suborder rather than the suborder's own service start.
  • When true, late penalty is applied if the location, depot or shift service was finished after the end of the time window.
    In most cases turning this option on is equivalent to decreasing the ends of all the time windows by service_duration_s of the corresponding locations, depots and shifts. However, it provides its own mechanics for the cases when it is not clear how much time will pass since arrival to the location till the end of service, e.g. in the cases of serving multi-orders and unloading pickups at the depot. It is recommended to set this to true if it is important to serve multi-orders in time rather than to arrive at a multi-order location in time. More information

options.penalty

object

Penalties for global solution limitations violation.

options.penalty.close_location_groups

object

Penalty components for extra visits to close location group poins.

options.penalty.close_location_groups.per_extra_point

number

Penalty for every point where vehicles/couriers arrive more than once.

Minimum value: 0.

options.penalty.close_location_groups.per_extra_vehicle

number

Penalty for every extra vehicle/courier that arrives at close location group points.

Minimum value: 0.

options.penalty.close_location_groups.per_extra_visit

number

Penalty for each extra visit to close location group points.

Minimum value: 0.

options.penalty.drop_penalty_percentage

object

Penalty components for max_drop_penalty_percentage violation.

options.penalty.drop_penalty_percentage.fixed

number

Fixed penalty applied if drop penalty ratio is too high.

Default value: 1000.

options.penalty.drop_penalty_percentage.per_percent

number

Penalty for each exceeding percent of drop penalty percentage.

Default value: 50.

options.penalty.multiorders

object

Penalty components for extra visits to multiorder poins.

options.penalty.multiorders.per_extra_point

number

Penalty for every point where vehicles/couriers arrive more than once.

Minimum value: 0.

options.penalty.multiorders.per_extra_vehicle

number

Penalty for every extra vehicle/courier that arrives at multi-order points.

Minimum value: 0.

options.penalty.multiorders.per_extra_visit

number

Penalty for each extra visit to multi-order points.

Minimum value: 0.

options.penalty.split_orders_percentage

object

Penalty components for max_split_orders_percentage violation.

options.penalty.split_orders_percentage.fixed

number

Fixed penalty applied if split orders ratio is too high.

Default value: 1000.

options.penalty.split_orders_percentage.per_percent

number

Penalty for each exceeding percent of split orders percentage.

Default value: 50.

options.points_throughputs[]

array

Each item in this array defines point throughput.

options.points_throughputs[].penalty

object

options.points_throughputs[].penalty.throughput

object

Penalty components for throughput exceeding.

options.points_throughputs[].penalty.throughput.fixed

number

Fixed penalty applied if throughput is exceeded.

Default value: 1000.

options.points_throughputs[].penalty.throughput.kg

number

Penalty for each extra kg of throughput exceeding.

Default value: 50.

options.points_throughputs[].penalty.throughput.unit

number

Penalty for each extra custom unit of throughput exceeding (units field).

Default value: 100.

options.points_throughputs[].penalty.throughput.vehicle

number

Penalty for each extra vehicle per hour of throughput exceeding.

Default value: 100000.

options.points_throughputs[].point

object

WGS84 coordinate of a location. More information

options.points_throughputs[].point.lat *

number

Minimum value: -90.
Maximum value: 90.

options.points_throughputs[].point.lon *

number

Minimum value: -180.
Maximum value: 180.

options.points_throughputs[].throughput

object

Point throughput limit.

options.points_throughputs[].throughput.kg_per_hour

object

options.points_throughputs[].throughput.kg_per_hour.time_window

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.points_throughputs[].throughput.kg_per_hour.value

number

Throughput, kilograms per hour.

Minimum value: 0.

options.points_throughputs[].throughput.units_per_hour

object

options.points_throughputs[].throughput.units_per_hour.time_window

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.points_throughputs[].throughput.units_per_hour.value

number

Throughput, custom units per hour.

Minimum value: 0.

options.points_throughputs[].throughput.vehicle_count

object

options.points_throughputs[].throughput.vehicle_count.time_window

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.points_throughputs[].throughput.vehicle_count.value

number

Throughput, simultaneously vehicles.

Minimum value: 0.
Maximum value: 1e+09.

options.post_optimization

boolean

Use post optimization: restart algorithm in the last 10% operations with disabled global proximity and balancing. More information

options.preset_id

string

Preset number for task options.

options.proximity_factor

number

Level of location proximity influence on vehicle routes. Recommended values are from 0.0 to 1.0. Using this option makes routes more tolerant to dropping locations. Note, that using proximity will decrease optimality of computed routes in terms of costs and penalties. More information

Minimum value: 0.
Maximum value: 10.

options.quality

string

Solution quality:

  • low — debug mode for development and validation of constraints, shortest run time;
  • normal — baseline solution quality, average run time;
  • high — highest possible quality, longest run time.
    Required field.

Default value: normal.

Allowed values
  1. low
  2. normal
  3. high

options.restart_on_drop

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.routing_mode

string

Transportation method. More information

  • driving — default mode, routing with car profile;
  • truck — routing with truck profile;
  • walking — routing with pedestrian profile, only on roads allowed for pedestrian traffic;
  • transit — routing with pedestrian profile combined with public transport;
  • bicycle — routing with bicycle profile.

Default value: driving.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

options.template_rest_schedules[]

array

List of rest schedule templates. More information

options.template_rest_schedules[].breaks *

object

options.template_rest_schedules[].breaks.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

options.template_rest_schedules[].breaks.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

options.template_rest_schedules[].breaks.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

options.template_rest_schedules[].breaks.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

options.template_rest_schedules[].breaks.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.penalty

object

Penalties applied for violations of work break conditions.

options.template_rest_schedules[].breaks.penalty.early

object

Penalty components for early work break.

options.template_rest_schedules[].breaks.penalty.early.fixed

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: 1000.

options.template_rest_schedules[].breaks.penalty.early.minute

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: 17.

options.template_rest_schedules[].breaks.penalty.late

object

Penalty components for late work break.

options.template_rest_schedules[].breaks.penalty.late.fixed

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: 1000.

options.template_rest_schedules[].breaks.penalty.late.minute

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: 17.

options.template_rest_schedules[].breaks.repeatable

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.template_rest_schedules[].breaks.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.type

string

Type of work break. Used in merge_with_types field.

options.template_rest_schedules[].breaks.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

options.template_rest_schedules[].breaks.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

options.template_rest_schedules[].breaks.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

options.template_rest_schedules[].breaks.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

options.template_rest_schedules[].breaks.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.penalty

object

Penalties applied for violations of work break conditions.

options.template_rest_schedules[].breaks.penalty.early

object

Penalty components for early work break.

options.template_rest_schedules[].breaks.penalty.early.fixed

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: 1000.

options.template_rest_schedules[].breaks.penalty.early.minute

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: 17.

options.template_rest_schedules[].breaks.penalty.late

object

Penalty components for late work break.

options.template_rest_schedules[].breaks.penalty.late.fixed

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: 1000.

options.template_rest_schedules[].breaks.penalty.late.minute

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: 17.

options.template_rest_schedules[].breaks.repeatable

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.template_rest_schedules[].breaks.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

options.template_rest_schedules[].breaks.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.type

string

Type of work break. Used in merge_with_types field.

options.template_rest_schedules[].breaks.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].breaks.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

options.template_rest_schedules[].id *

string

A unique ID of a template.

options.time_zone *

object

options.wait_in_multiorders

boolean

Allows to wait in multiorders. More information

Default value: true.

options.weighted_drop_penalty

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[].allow_different_depots_in_route

boolean

Vehicle is allowed to visit depots with different ids in the same route

vehicles[].allowed_zones[]

array

List of zones, which can be visited by vehicle. More information

vehicles[].can_change_depot_between_runs

boolean

Vehicle is allowed to start the run from different depot than the one where its previous run has ended

vehicles[].capacity

object

Vehicle capacity. More information

vehicles[].capacity.custom

object

Amount of custom units a vehicle is able to carry. Capacities in custom units are defined in format "name": size, where name is a string denoting the name of a unit, and size is a non-negative floating-point number denoting the vehicle capacity with respect to this unit. If the name of a unit is present in objects (locations/vehicles/trailers), but not this, it is assumed that the capacity is unlimited.

vehicles[].capacity.limits

object

Vehicle load limits.

vehicles[].capacity.limits.units_perc

number

Upper limit of total shipments size in custom units as a percentage of a vehicle capacity.

Minimum value: 0.
Default value: 100.

vehicles[].capacity.limits.volume_perc

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 (0.01 * volume_perc).

Minimum value: 0.
Default value: 100.

vehicles[].capacity.limits.weight_perc

number

Upper limit of total shipments weight as a percentage of total weight the vehicle is allowed to carry.

Minimum value: 0.
Default value: 100.

vehicles[].capacity.units

number

Amount of custom units a vehicle is able to carry.

Minimum value: 0.
Default value: 1e+09.

vehicles[].capacity.volume

object

Vehicle dimensions.

vehicles[].capacity.volume.depth_m *

number

Depth, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].capacity.volume.height_m *

number

Height, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].capacity.volume.width_m *

number

Width, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].capacity.volume_cbm

number

Volume a vehicle is able to fit, cubic meters.

Minimum value: 0.

vehicles[].capacity.weight_kg

number

Weight a vehicle is able to carry, kilograms.

Minimum value: 0.
Default value: 1e+09.

vehicles[].close_locations[]

array

vehicles[].close_locations[].distance_till_service_m

object

vehicles[].close_locations[].distance_till_service_m.penalty

number

Penalty per km exceeding the maximum distance between servicing close locations.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].close_locations[].distance_till_service_m.value

number

The maximum distance traveled between servicing two close locations.

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

vehicles[].close_locations[].duration_till_service_s

object

vehicles[].close_locations[].duration_till_service_s.penalty

number

Penalty per second exceeding the maximum time between servicing close locations.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].close_locations[].duration_till_service_s.value

number

The maximum time between servicing two close locations.

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

vehicles[].close_locations[].routing_mode

string

Transportation method is used to determine close locations. This parameter can be used only if the walking_courier field is defined in the vehicle. In this case, the values walking and the value of the main transportation method of the vehicle are acceptable.

Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

vehicles[].close_locations[].search_radius_m

number

Maximum distance between two locations in meters at which locations on which the restriction is applied.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].close_locations[].soft_search_radius_m

number

If value is greater than the corresponding value of the search_radius_m for locations at distances from search_radius_m to soft_search_radius_m, the penalty is linear reduced down to 0.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].cost

object

vehicles[].cost.fixed

number

Cost per fact of vehicle use (cost occurred if vehicle is included in route).

Minimum value: 0.
Default value: 3000.

vehicles[].cost.hour

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: 0.
Default value: 100.

vehicles[].cost.km

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: 0.
Default value: 8.

vehicles[].cost.location

number

Cost of using vehicle per location (default 0).

Minimum value: 0.

vehicles[].cost.run

number

Cost per single vehicle run from depot to locations.

Minimum value: 0.

vehicles[].cost.tonne_km

number

Cost of carrying one tonne for one kilometer (default 0).

Minimum value: 0.

vehicles[].cost.waiting_hour

number

Cost of waiting per hour. If not defined, the value specified in the hour field is used.

Minimum value: 0.

vehicles[].cost.route

string

Arithmetic expression representing route cost

vehicles[].cost.run

string

Arithmetic expression representing run cost

vehicles[].cost.shift

string

Arithmetic expression representing shift cost

vehicles[].crossdock_mode

string

Defines whether this machine is allowed to deliver orders to the cross-dock depot. More information

  • deny — prohibited, can only deliver to locations;
  • allow — allowed, can deliver both directly to locations and to a cross-dock depot;
  • mandatory — required, can only deliver to a cross-dock depot.

Default value: allow.

Allowed values
  1. deny
  2. allow
  3. mandatory

vehicles[].depot_extra_service_duration_s

number

Additional time required to load this vehicle in the depot.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].depot_id

object

vehicles[].depots_only_at_run_beginning

boolean

Middle depots are allowed only until first order location.

vehicles[].ending_depot_id

object

vehicles[].excluded_tags[]

array

List of excluding vehicle tags, checked for compatibility with location tags (POSIX-extended regular expression are used). More information

vehicles[].finish_at

object

Defines id of a location with type garage where the vehicle should finish the route.

vehicles[].finish_route_in_starting_depot

boolean

Finish route in the same depot where it started.

vehicles[].finish_run_in_starting_depot

boolean

Finish runs in the same depot where it started.

vehicles[].first_edges_penalty_factor

number

A factor that determines extra penalty/bonus for the first edge of each run.If positive, solver tries to serve orders starting from the closest to depot. If negative, solver tries to serve orders starting from the most distant from depot

vehicles[].fixed_planned_route

boolean

If true, planned route of the vehicle will be used without any changes. More information

vehicles[].fixed_work_breaks[]

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 shifts) is provided for the vehicle, you have to specify a valid shift_id for every work break. This option is primarily intended for combining with visited_locations to describe work breaks during visiting them, but they can be applied independently.

vehicles[].fixed_work_breaks[].shift_id

string

Unique identifier of a shift.

vehicles[].fixed_work_breaks[].work_duration_s *

number

Duration of continuous work before the break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].forbidden_zones[]

array

List of zones, which can not be visited by vehicle. More information

vehicles[].global_proximity_attraction_point

object

Defines id of a location with type garage, the distance to which is calculated for the global_proximity penalty.

vehicles[].id *

object

Vehicle ID. All vehicle IDs in task must be unique and have the same type: integer or string. More information

vehicles[].imei

integer

The number of the GPS tracker.

vehicles[].immutable

boolean

All routes for this vehicle, specified in initial_routes, are used without changes, new runs can not be added.

vehicles[].incompatible_load_types[]

array

Each item in this array defines list of location load types, that should not be handled within the same vehicle run (overrides incompatible_load_types value specified in options). More information

vehicles[].incompatible_zones[]

array

Each item in this array defines list of location zones, that should not be visited within the same vehicle run. (overrides incompatible_zones value specified in options). More information

vehicles[].last_edges_penalty_factor

number

A factor that determines extra penalty/bonus for the last edge of each run.If positive, solver tries to end serving orders closer to depot. If negative, solver tries to end serving orders farther from depot

vehicles[].max_middle_depots

integer

Maximal number of middle depots (i.e. depots which do not break the run) in the route

vehicles[].max_runs

integer

Maximal number of the vehicle runs from the depot to locations in all shifts. More information

Default value: 1.

vehicles[].middle_depot_id

object

vehicles[].min_stop_weight

number

Minimal total weight of all orders in one point. More information

vehicles[].onboard_incompatible_load_types

boolean

Determine load type incompatibility with respect only to orders on vehicle board.

vehicles[].optional_zones[]

array

List of optional zones with bonus

vehicles[].optional_zones[].value *

number

Value of the zone. This value is subtracted from the route cost for any served location with a matching zone.For location with multiple matching zones will be chosen the maximum bonus.

vehicles[].optional_zones[].zone *

string

Zone id.

vehicles[].payout

object

vehicles[].payout.route

string

Arithmetic expression representing route cost

vehicles[].payout.run

string

Arithmetic expression representing run cost

vehicles[].payout.shift

string

Arithmetic expression representing shift cost

vehicles[].penalty

object

Penalties for vehicle limitations violation.

vehicles[].penalty.arrival_after_start

object

Penalty components for arrived after start of timewindow

vehicles[].penalty.arrival_after_start.as_soon_as_possible

boolean

Option for arrive as soon as possible even it includes added wait in route. When using the parameter, it is also recommended to specify a non-zero value of the average_h parameter.

vehicles[].penalty.arrival_after_start.average_h

number

Penalty for average arrived after start of timewindow

vehicles[].penalty.empty_runs

object

Penalty components for empty runs, which cannot be skipped because of actual visit times.

vehicles[].penalty.empty_runs.fixed

number

Fixed penalty applied if there are empty runs left in the route.

vehicles[].penalty.empty_runs.per_run

number

Penalty for every empty run in the route.

vehicles[].penalty.min_stop_weight

object

Penalty components for insufficient total orders weight in point.

vehicles[].penalty.min_stop_weight.fixed

number

Fixed penalty applied if total orders weight is too low.

Default value: 1000.

vehicles[].penalty.min_stop_weight.kg

number

Penalty for each lacking kg of total orders weight.

Default value: 50.

vehicles[].phone

string

Phone number of the courier.

vehicles[].planned_route

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 fix_planned_shifts solver option. More information

vehicles[].planned_route.locations[] *

array

A planned order of locations in a vehicle route including all shifts and multiple runs. If the list of shifts (see shifts) is provided for the vehicle, you have to specify a valid shift_id for every location in the route.

vehicles[].planned_route.locations[].anchor_mode

string

Default value: Undefined.

Allowed values
  1. Decoupling
  2. Rolling
  3. Coupling
  4. Undefined

vehicles[].planned_route.locations[].delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

vehicles[].planned_route.locations[].delivery_in_current_run

boolean

All orders, loaded in this location, have to be delivered in current run.

vehicles[].planned_route.locations[].id *

object

Reference to a location specified in locations. More information

vehicles[].planned_route.locations[].is_middle_depot

boolean

Location is a middle depot.

vehicles[].planned_route.locations[].loaded_orders[]

array

Ids of delivery orders, loaded into the vehicle in garage or depot.

One Of:

vehicles[].planned_route.locations[].order_ratio

number

Order ratio, included in this part.

vehicles[].planned_route.locations[].parking_mode

string

Default value: Undefined.

Allowed values
  1. ParkingBegin
  2. ParkingRefill
  3. ParkingEnd
  4. Undefined

vehicles[].planned_route.locations[].picked_orders[]

array

A list of IDs of orders picked up in the crossdock or depot.

One Of:

vehicles[].planned_route.locations[].shift_id

string

Unique identifier of a shift.

vehicles[].planned_route.locations[].wait_if_early

boolean

This option determines what happens if a vehicle arrives to the planned location early. When true, the vehicle will wait until the start of a location's time window before serving. When false, it will serve the location immediately. Should be true in the case of hard time window(s).

Default value: true.

vehicles[].planned_route.planned_runs_first

boolean

It is necessary to visit all depots, listed in planned_route, before making non-planned runs.

vehicles[].planned_route.start_time

object

vehicles[].planned_route.start_time.shift_id *

string

Unique identifier of a shift.

vehicles[].planned_route.start_time.start_time *

string

Shift start time, in[D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z.

vehicles[].planned_route.work_breaks[]

array

Planned work breaks for a vehicle route including all shifts and multiple runs. If the list of shifts (see shifts) is provided for the vehicle, you have to specify a valid shift_id for every work break. If both planned_work_breaks and fixed_work_breaks lists are provided for a vehicle, one must be a prefix of another upon restriction on any shift. Thus it is impossible to override fixed work breaks by planned work breaks.

vehicles[].planned_route.work_breaks[].shift_id

string

Unique identifier of a shift.

vehicles[].planned_route.work_breaks[].work_duration_s *

number

Duration of continuous work before the break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].preset_id

string

Preset number for vehicle properties.

vehicles[].ref

string

Vehicle reference number.

vehicles[].rest_schedule

object

Schedule of rest breaks. More information

vehicles[].rest_schedule.breaks *

object

vehicles[].rest_schedule.breaks.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

vehicles[].rest_schedule.breaks.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

vehicles[].rest_schedule.breaks.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

vehicles[].rest_schedule.breaks.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

vehicles[].rest_schedule.breaks.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.penalty

object

Penalties applied for violations of work break conditions.

vehicles[].rest_schedule.breaks.penalty.early

object

Penalty components for early work break.

vehicles[].rest_schedule.breaks.penalty.early.fixed

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: 1000.

vehicles[].rest_schedule.breaks.penalty.early.minute

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: 17.

vehicles[].rest_schedule.breaks.penalty.late

object

Penalty components for late work break.

vehicles[].rest_schedule.breaks.penalty.late.fixed

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: 1000.

vehicles[].rest_schedule.breaks.penalty.late.minute

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: 17.

vehicles[].rest_schedule.breaks.repeatable

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[].rest_schedule.breaks.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.type

string

Type of work break. Used in merge_with_types field.

vehicles[].rest_schedule.breaks.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.after_last_location

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 merge_with_types field, otherwise it will be put immediately after serving of the last location.

vehicles[].rest_schedule.breaks.at_rest_place

boolean

When true, the vehicle will break work only in a location with type "rest_place"

vehicles[].rest_schedule.breaks.before_first_location

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 merge_with_types field, otherwise it will be put immediately before serving of the first location.

vehicles[].rest_schedule.breaks.continuous_travel_time_range

string

Minimal and maximal duration of continuous travel time before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.driving_time_range

string

Minimal and maximal duration of driving before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.exact_time_range

string

The exact time range when the rest should start, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.merge_with_types[]

array

Types of work breaks this work break can be merged with. This field can only be used with before_first_location or after_last_location fields.

vehicles[].rest_schedule.breaks.necessary_route_duration_s

number

Minimal duration of route needed to make work break necessary, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.penalty

object

Penalties applied for violations of work break conditions.

vehicles[].rest_schedule.breaks.penalty.early

object

Penalty components for early work break.

vehicles[].rest_schedule.breaks.penalty.early.fixed

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: 1000.

vehicles[].rest_schedule.breaks.penalty.early.minute

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: 17.

vehicles[].rest_schedule.breaks.penalty.late

object

Penalty components for late work break.

vehicles[].rest_schedule.breaks.penalty.late.fixed

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: 1000.

vehicles[].rest_schedule.breaks.penalty.late.minute

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: 17.

vehicles[].rest_schedule.breaks.repeatable

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[].rest_schedule.breaks.rest_duration_s *

number

Duration of rest, seconds.

Minimum value: 0.001.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.route_duration_s

number

Minimal duration of route needed to use work break, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].rest_schedule.breaks.travel_time_range

string

Minimal and maximal duration of driving and waiting before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.type

string

Type of work break. Used in merge_with_types field.

vehicles[].rest_schedule.breaks.work_time_range_from_start

string

Minimal and maximal duration of time from start of route until rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule.breaks.work_time_range_till_rest

string

Minimal and maximal duration of work before rest, format: [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] ("04:00 - 05:30").

vehicles[].rest_schedule_id

string

ID of a rest schedule template used in this vehicle.

vehicles[].return_to_depot

boolean

If true, the vehicle returns to its depot after the last order.
When set to false and finish_at parameter is not specified, then the last route and shift will be finished at the last order location. When set to true and finish_at parameter is specified, the last vehicle route will go through the depot in the end and then will be finished together with the shift at the garage location.

Default value: true.

vehicles[].routing_mode

string

Transportation method. If present, overrides routing_mode specified in solver options. More information

  • driving — default mode, routing with car profile;
  • truck — routing with truck profile;
  • walking — routing with pedestrian profile, only on roads allowed for pedestrian traffic;
  • transit — routing with pedestrian profile combined with public transport;
  • bicycle — routing wtih bicycle profile.
Allowed values
  1. driving
  2. truck
  3. walking
  4. transit
  5. bicycle

vehicles[].service_duration_multiplier

number

Service duration adjustment coefficient for slow or fast workers. More information

Minimum value: 0.001.
Default value: 1.

vehicles[].shared_service_duration_multiplier

number

Shared service duration adjustment coefficient for slow or fast workers. More information

Minimum value: 0.001.
Default value: 1.

vehicles[].shifts[]

array

List of vehicle shifts. More information

vehicles[].shifts[].balanced_group_id

string

ID of a corresponding balanced group of routes (see the option balanced_groups).

vehicles[].shifts[].hard_max_duration_s

number

Hard limit on the maximum shift duration in seconds. If both max_duration_s and hard_max_duration_s are present, the value of hard_max_duration_s should be greater or equal to the value of max_duration_s.

Minimum value: 0.
Maximum value: 3.1536e+09.
Default value: 2.592e+06.

vehicles[].shifts[].hard_time_window

string

Allowed hard time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. Hard time window must include time range defined in corresponding time_window field. Fields hard_time_window and hard_window are mutually exclusive. More information

vehicles[].shifts[].hard_window

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[].shifts[].id *

string

Unique identifier of a shift.

vehicles[].shifts[].immutable

boolean

All routes for this shift, specified in initial_routes, are used without changes, new runs can not be added.

vehicles[].shifts[].max_duration_s

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: 0.
Maximum value: 3.1536e+09.
Default value: 172800.

vehicles[].shifts[].max_mileage_km

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 penalty.max_mileage are applied. More information

Minimum value: 0.

vehicles[].shifts[].max_runs

integer

Maximal number of the vehicle runs from the depot to locations in shift.

Default value: 1.

vehicles[].shifts[].maximal_stops

integer

Maximal number of shift stops, if the final stop count is greater than this value, stop_excess penalties are applied.More information

Minimum value: 0.

vehicles[].shifts[].minimal_stops

integer

Minimal number of shift stops, if the final stop count is less than this value, stop_lack penalties are applied. More information

Minimum value: 0.

vehicles[].shifts[].minimal_unique_stops

integer

Minimal number of shift stops with unique coordinates, if the final stop count is less than this value, unique_stop_lack penalties are applied.

Minimum value: 0.

vehicles[].shifts[].penalty

object

Penalties for shift constraints violation.

vehicles[].shifts[].penalty.early

object

Penalty components for shifts started too early (used instead of out_of_time penalty). If the shift was also finished too early, it is applied to the shift finish too.

vehicles[].shifts[].penalty.early.fixed

number

Fixed penalty applied if the vehicle starts or finishes the shift before the start of the time window.

Default value: 1000.

vehicles[].shifts[].penalty.early.minute

number

Penalty for each minute of earliness if the vehicle starts or finishes the shift before the start of the time window.

Default value: 17.

vehicles[].shifts[].penalty.late

object

Penalty components for shifts finished too late (used instead of out_of_time penalty). This penalty is applied for being late to the end of the shift's time window or violating the max_duration_s bound. If both are violated simultaneously, the penalty is applied twice and summed. If the shift was started after the end of the time window, this penalty for the start time point is also added separately. More information

vehicles[].shifts[].penalty.late.fixed

number

Fixed penalty applied if the vehicle starts or finishes the shift after the end of the time window or shift duration exceeds the max_duration_s bound.

Default value: 1000.

vehicles[].shifts[].penalty.late.minute

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 max_duration_s seconds at the shift.

Default value: 17.

vehicles[].shifts[].penalty.max_mileage

object

Penalties applied for violating shift's max_mileage_km limit.

vehicles[].shifts[].penalty.max_mileage.fixed

number

Fixed penalty applied if a vehicle shift has mileage greater than max_mileage_km.

Minimum value: 0.
Default value: 1000.

vehicles[].shifts[].penalty.max_mileage.km

number

Penalty applied per each extra kilometer when shift mileage is greater than max_mileage_km shift parameter.

Minimum value: 0.
Default value: 100.

vehicles[].shifts[].penalty.out_of_time

object

Penalty components for time window failure. Can be used to set the values of early and late options simultaneously, and each value is overridden if the respective option is also defined.

vehicles[].shifts[].penalty.out_of_time.fixed

number

Fixed penalty applied if the vehicle starts or finishes the shift outside of the time window. See the specifications of early and late options for more details in each case.

Default value: 1000.

vehicles[].shifts[].penalty.out_of_time.minute

number

Penalty for each minute of being outside of the time window of the shift. See the specifications of early and late options for more details in each case.

Default value: 17.

vehicles[].shifts[].penalty.stop_excess

object

Penalties applied for violating shift's maximal_stops limit.

vehicles[].shifts[].penalty.stop_excess.fixed

number

Fixed penalty applied if a vehicle shift has greater than maximal_stops stops.

Minimum value: 0.

vehicles[].shifts[].penalty.stop_excess.per_stop

number

Penalty applied per each extra stop when shift stop count is greater than maximal_stops parameter.

Minimum value: 0.

vehicles[].shifts[].penalty.stop_lack

object

Penalties applied for violating shift's minimal_stops limit.

vehicles[].shifts[].penalty.stop_lack.fixed

number

Fixed penalty applied if a vehicle shift has less than minimal_stops stops.

Minimum value: 0.

vehicles[].shifts[].penalty.stop_lack.per_stop

number

Penalty applied per each missing stop when shift stop count is less than minimal_stops parameter.

Minimum value: 0.

vehicles[].shifts[].penalty.unique_stop_lack

object

Penalties applied for violating shift's minimal_stops limit.

vehicles[].shifts[].penalty.unique_stop_lack.fixed

number

Fixed penalty applied if a vehicle shift has less than minimal_stops stops.

Minimum value: 0.

vehicles[].shifts[].penalty.unique_stop_lack.per_stop

number

Penalty applied per each missing stop when shift stop count is less than minimal_stops parameter.

Minimum value: 0.

vehicles[].shifts[].preset_id

string

Preset number for vehicle shift.

vehicles[].shifts[].service_duration_s

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: 0.
Maximum value: 3.1536e+09.

vehicles[].shifts[].time_window *

string

Allowed time window to visit location, in [D.]HH[:MM[:SS]] - [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00/2018-09-06T12:45:00+03:00, 2018-09-06T10:15:00Z/2018-09-06T12:45:00Z. More information

vehicles[].specs

object

Vehicle specification. More information

vehicles[].specs.height

number

Height of the vehicle, meters.

Minimum value: 0.

vehicles[].specs.length

number

Length of the vehicle, meters.

Minimum value: 0.

vehicles[].specs.max_weight

number

Maximum weight of the vehicle, tons.

Minimum value: 0.

vehicles[].specs.max_weight_kg

number

Maximum weight of the vehicle, kilograms. When solving the problem, the characteristic will be rounded up to tons.If both characteristics are set max_weight and max_weight_kg, `max_weight will be used.

Minimum value: 0.

vehicles[].specs.width

number

Width of the vehicle, meters.

Minimum value: 0.

vehicles[].start_at

object

Defines id of a location with type garage where the vehicle should start the route. More information

vehicles[].starting_depot_id

object

vehicles[].tags[]

array

List of vehicle tags, checked for compatibility with location tags (POSIX-extended regular expression are used). More information

vehicles[].trailer

object

Trailer specification. Usage of trailer with walking_courier is forbidden.More information

vehicles[].trailer.capacity

object

Trailer capacity.

vehicles[].trailer.capacity.custom

object

Amount of custom units a trailer is able to carry. Capacities in custom units are defined in format "name": size, where name is a string denoting the name of a unit, and size is a non-negative floating-point number denoting the vehicle capacity with respect to this unit. If the name of a unit is present in objects (locations/vehicles/trailers), but not this, it is assumed that the capacity is unlimited.

vehicles[].trailer.capacity.limits

object

Trailer load limits.

vehicles[].trailer.capacity.limits.units_perc

number

Upper limit of total shipments size in custom units as a percentage of a trailer capacity

Minimum value: 0.
Default value: 100.

vehicles[].trailer.capacity.limits.volume_perc

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 (0.01 * volume_perc).

Minimum value: 0.
Default value: 100.

vehicles[].trailer.capacity.limits.weight_perc

number

Upper limit of total shipments weight as a percentage of total weight the trailer is allowed to carry.

Minimum value: 0.
Default value: 100.

vehicles[].trailer.capacity.units

number

Amount of custom units a trailer is able to carry.

Minimum value: 0.
Default value: 1e+09.

vehicles[].trailer.capacity.volume

object

Trailer dimensions.

vehicles[].trailer.capacity.volume.depth_m *

number

Depth, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].trailer.capacity.volume.height_m *

number

Height, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].trailer.capacity.volume.width_m *

number

Width, meters.

Minimum value: 0.
Maximum value: 1e+06.
Default value: 1000.

vehicles[].trailer.capacity.volume_cbm

number

Volume a trailer is able to fit, cubic meters.

Minimum value: 0.

vehicles[].trailer.capacity.weight_kg

number

Weight a trailer is able to carry, kilograms.

Minimum value: 0.
Default value: 1e+09.

vehicles[].trailer.cost

object

Trailer cost.

vehicles[].trailer.cost.fixed

number

Cost per fact of trailer use (cost occurred if trailer is used in route).

Minimum value: 0.
Default value: 3000.

vehicles[].trailer.cost.hour

number

Cost of using trailer per hour.

Minimum value: 0.
Default value: 100.

vehicles[].trailer.cost.km

number

Cost of using trailer per kilometer.

Minimum value: 0.
Default value: 8.

vehicles[].trailer.cost.location

number

Cost of using trailer per location (default 0).

Minimum value: 0.

vehicles[].trailer.cost.run

number

Cost per single vehicle run from depot to locations.

Minimum value: 0.

vehicles[].trailer.cost.tonne_km

number

Cost of carrying one tonne for one kilometer (default 0).

Minimum value: 0.

vehicles[].trailer.cost.waiting_hour

number

Cost of waiting per hour. If not defined, the value specified in the hour field is used.

Minimum value: 0.

vehicles[].trailer.coupling_time_s

number

Extra time to couple the trailer, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].trailer.decoupling_time_s

number

Extra time to decouple the trailer, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].trailer.max_capacity_difference

object

The maximum difference between the loading of the trailer and the head.

vehicles[].trailer.max_capacity_difference.custom

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 "name": size, where name is a string denoting the name of a unit, and size is a floating-point number denoting the allowable difference with respect to this unit. If the name of a unit is present in objects (locations/vehicles/trailers), but not this, it is assumed that there is no restriction.

vehicles[].trailer.max_capacity_difference.units

number

The maximum allowable difference in the loaded amount of custom units between the trailer and the head.

vehicles[].trailer.max_capacity_difference.volume_cbm

number

The maximum allowable difference in the loaded volume between the trailer and the head, cubic meters.

vehicles[].trailer.max_capacity_difference.weight_kg

number

The maximum allowable difference in the loaded weight between the trailer and the head, kilograms.

vehicles[].trailer.rolling_cost

number

Penalty for each rolling of goods from the trailer to the head.

Minimum value: 0.

vehicles[].trailer.rolling_time

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[].trailer.rolling_time.fixed_time_s

number

Fixed time spent each time a trailer is loaded or unloaded, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].trailer.rolling_time.s_per_kg

number

Loading time per kg, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].trailer.rolling_time.s_per_m3

number

Loading time per cubic meter, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].trailer.rolling_time.s_per_unit

number

Loading time per unit, seconds.

Minimum value: 0.
Maximum value: 3.1536e+09.

vehicles[].travel_time_multiplier

number

Travel duration adjustment coefficient for slow or fast vehicles. More information

Minimum value: 0.001.
Default value: 1.

vehicles[].visit_depot_at_start

boolean

If true, the first route of the vehicle will go through the depot in the beginning.More information
There are four different scenarios to define the first vehicle's route beginning using options start_at and visit_depot_at_start:

  • start_at defined, visit_depot_at_start`=true: garage->depot` -> location;
  • start_at defined, visit_depot_at_start`=false: garage` -> locations;
  • start_at undefined, visit_depot_at_start`=true: depot` -> locations;
  • start_at undefined, visit_depot_at_start`=false`: locations.

Default value: true.

vehicles[].visited_locations[]

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 fixed_work_breaks vehicle's option. More information

vehicles[].visited_locations[].delivered_orders[]

array

List of IDs of orders delivered to the drop_off, depot or crossdock for delivery to the destination.

One Of:

vehicles[].visited_locations[].id *

object

Reference to a location specified in locations. More information

vehicles[].visited_locations[].order_ratio

number

Order ratio, included in this part.

vehicles[].visited_locations[].shift_id

string

Unique identifier of a shift.

vehicles[].visited_locations[].time

string

Time of departure from a location, in [D.]HH[:MM[:SS]] format or ISO 8601 2018-09-06T10:15:00+03:00, 2018-09-06T10:15:00Z.

vehicles[].visited_locations[].wait_if_early

boolean

This option determines what happens if a vehicle arrives to the planned location early. When true, the vehicle will wait until the start of a location's time window before serving. When false, it will serve the location immediately. Should be true in the case of hard time window(s).

Default value: true.

vehicles[].walking_courier

object

Description of a pedestrian courier. Usage of walking_courier in vehicle with trailer is forbidden.

vehicles[].walking_courier.capacity

object

Capacity of a courier

vehicles[].walking_courier.capacity.units

number

Amount of custom units a courier is able to carry.

Minimum value: 0.
Default value: 1e+09.

vehicles[].walking_courier.cost

object

Courier work cost.

vehicles[].walking_courier.cost.hour

number

Cost per hour of courier walking routes.

Minimum value: 0.

vehicles[].walking_courier.cost.km

number

Cost per kilometer walked by courier.

Minimum value: 0.

vehicles[].walking_courier.restrictions

object

vehicles[].walking_courier.restrictions.max_parking_duration_s

object

vehicles[].walking_courier.restrictions.max_parking_duration_s.penalty

number

Penalty per second exceeding the maximum parking time.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].walking_courier.restrictions.max_parking_duration_s.value

number

The maximum duration of the walking part allowed within one parking, seconds.

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

vehicles[].walking_courier.restrictions.max_parking_walking_distance_m

object

vehicles[].walking_courier.restrictions.max_parking_walking_distance_m.penalty

number

Penalty per m exceeding the maximum distance traveled within one parking.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].walking_courier.restrictions.max_parking_walking_distance_m.value

number

The maximum walking distance allowed within one parking.

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

vehicles[].walking_courier.restrictions.max_walking_edge_distance_m

object

vehicles[].walking_courier.restrictions.max_walking_edge_distance_m.penalty

number

Penalty for exceeding the walking edge limit per meter.

Minimum value: 0.
Maximum value: 1e+09.

vehicles[].walking_courier.restrictions.max_walking_edge_distance_m.value

number

Max walking distance between two locations in route, meters.

Minimum value: 0.
Maximum value: 1e+09.
Default value: 1e+09.

zones[]

array

zones[].geometry *

object

zones[].geometry.coordinates[]

array

zones[].geometry.type

string

Always equals Polygon

zones[].id *

string

Zone id

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

Collapse all
Expand all

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:
queued -> started -> (completed or cancelled)

status.cancelled

number

Task execution has been cancelled by user or system due to timeout or error.

status.completed

number

Task execution completed with result or error.

status.estimate

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.queued *

number

Task has been queued for execution.

status.started

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:
queued -> started -> (completed or cancelled)

status.cancelled

number

Task execution has been cancelled by user or system due to timeout or error.

status.completed

number

Task execution completed with result or error.

status.estimate

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.queued *

number

Task has been queued for execution.

status.started

number

Task execution has been started.

Code 400

Invalid or empty JSON in POST request body.

{
  "error": {
    "incident_id": string,
    "message": string
  }
}
Copied to clipboard

Representation

Collapse all
Expand all

Fields

error *

object

Error description.

error.incident_id

string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

error.message *

string

Human-readable error description.

error *

object

Error description.

error.incident_id

string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

error.message *

string

Human-readable error description.

Code 401

Missing apikey.

{
  "error": {
    "incident_id": string,
    "message": string
  }
}
Copied to clipboard

Representation

Collapse all
Expand all

Fields

error *

object

Error description.

error.incident_id

string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

error.message *

string

Human-readable error description.

error *

object

Error description.

error.incident_id

string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

error.message *

string

Human-readable error description.

Code 429

Too many requests.

{
  "error": {
    "incident_id": string,
    "message": string
  }
}
Copied to clipboard

Representation

Collapse all
Expand all

Fields

error *

object

Error description.

error.incident_id

string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

error.message *

string

Human-readable error description.

error *

object

Error description.

error.incident_id

string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

error.message *

string

Human-readable error description.

Code 500

Server error during request processing.

{
  "error": {
    "incident_id": string,
    "message": string
  }
}
Copied to clipboard

Representation

Collapse all
Expand all

Fields

error *

object

Error description.

error.incident_id

string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

error.message *

string

Human-readable error description.

error *

object

Error description.

error.incident_id

string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

error.message *

string

Human-readable error description.

Code 503

Not enough resources available to run the task.

{
  "error": {
    "incident_id": string,
    "message": string
  }
}
Copied to clipboard

Representation

Collapse all
Expand all

Fields

error *

object

Error description.

error.incident_id

string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

error.message *

string

Human-readable error description.

error *

object

Error description.

error.incident_id

string

Unique identifier of error incident. In case of API error, this identifier can be provided to support for investigation.

error.message *

string

Human-readable error description.