Round trip - Create a plan

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.

POST
Time window
Choose a time window for the planning horizon and all locations:
08:00
00:0001:0002:0003:0004:0005:0006:0007:0008:0009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:0024:00
20:00
00:0001:0002:0003:0004:0005:0006:0007:0008:0009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:0024:00
Profile
Choose a profile by using the drop-down list:
EUR_TRAILER_TRUCK
EUR_TRAILER_TRUCKEUR_TRUCK_40TEUR_TRUCK_11_99TEUR_TRUCK_7_49TEUR_VANEUR_CARUSA_1_PICKUPUSA_5_DELIVERYUSA_8_SEMITRAILER_5AXLEAUS_LCV_LIGHT_COMMERCIALAUS_MR_MEDIUM_RIGIDAUS_HR_HEAVY_RIGID
Depot location
Change the geographical location of the single depot location:
Customer location
Add additional customers by clicking in the map!
Request Body

The Send Request button submits the updated plan. If the request is successful, a response with a unique ID will be generated.

Response
Waiting for response...

Note: The generated unique plan ID is necessary for the following steps.

To optimize the plan in the next step, copy the plan ID from the response into the code example Round trip - Optimize the plan.

Note: To delete the previously created plan, use the code sample Round trip - Delete a plan.


You can alternatively choose one of the following samples in your preferred language:

Request Sample
// C# 
// JavaScript 
// Python 
// Java 
// PowerShell