Set-up Depots

Introduction

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.

Request Example

1
{
2
"jobs": "[...]",
3
"locations":"{...}",
4
"depots": "[...]",
5
"options":"{...}",
6
"vehicles": "[...]",
7
}

Result

documentation image

© 2024 NextBillion.ai all rights reserved.