This part of the code sample explains how to create and optimize a sequence which takes into account priorities of given transports.
You can specify the following:
- Time window for the availability of the driver and all transports.
- Reference profiles for the calculation.
- Customer locations
Note: In this code sample a maximum of 10 customer locations are allowed.
- Priorities of transports to specific customer locations
All the specifications are automatically inserted into the request body on the right side in the JSON representation.
NOTE: In order to show the impact of transport priorities, the capacity of the vehicle was restricted to fit a maximum of three transports.
Note: To delete the previously created route, use the code sample Sequence optimization - Delete the sequence.