This part of the code sample explains how the request has to look like to create a simple plan for a round trip containing a vehicle, transports and the related locations.
You can specify the following:
- Time window for the planning horizon and all locations.
- Reference profiles for the calculation.
- Customer locations
Note: In this code sample a maximum of 10 customer locations are allowed.
All the specifications are automatically inserted into the request body on the right side in the JSON representation.
To optimize the plan in the next step, copy the plan ID from the response into the code example Round Trip - Optimize the Plan.
To delete the previously created plan, use the code sample Round Trip - Delete a Plan.