The code sample explains how to create a simple plan for a round trip starting at a depot location and returning to it at the end of a route. All transports are delivered from one single depot location, which is also the start and end location of the vehicle.
The whole process to create a simple plan for a round trip might be summarized in the following steps:
- Create a plan
Create a simple plan for a round trip containing a vehicle, transports and the related locations, see Round Trip - Create a Plan.
- Optimize the plan
Start of the optimization process for the previously created plan, see Round Trip - Optimize the Plan.
- Get operation status of the optimization run
Get operation status of the optimization run if optimization process was started before, see Round Trip - Get Operation Status of Optimization Run.
- Get a plan
After successful completion of the optimization process, you get an optimized plan, see Round Trip - Get a Plan.
- Delete a plan
Delete the already existing plan, see Round Trip - Delete a Plan.