Set-up Depots
In this example we used Depots and options.
-
depots: An array of depot object.
-
depot: Describes details of a depot.
- id: Describe an id for a depot object.
- location_index: Describe the location of the depot with its index in location.
-
options: An object to describe the options enabled in this optimization request.
- objective: Describe the objectives enabled for options
- travel_cost: Select a type of cost for optimization. Only “duration” and “distance” are valid inputs for this parameter.
- minimise_num_depots: Whether to minimise the number of depots in the routes.
- objective: Describe the objectives enabled for options