This part of the code sample explains how to create and optimize a route consisting of orders that will be
- picked up at the same depot and delivered at a customer location (delivery orders)
- picked up from a customer location and delivered to the same depot (pickup orders)
You can specify the following:
- Pickup and delivery orders for which corresponding customer locations are created
- Duration it takes to execute a pickup or delivery task at a customer location
- Route related costs
All the specifications are automatically inserted into the request body on the right side of the JSON representation.
Note:
For more information about pickup-delivery orders refer to orders concept page