TrueWay VRP

FREEMIUM
Verified
✓
By TrueWay Team | Updated 4 days ago | Logistics
Popularity

8.9 / 10

Latency

1,102ms

Service Level

100%

Health Check

N/A

Back to All Tutorials (7)

Complex Delivery with multidimensional capacity constraints, distance and duration constraints, time windows, working hours, breaks, ...

{
  "delivery_orders": [
    {
      "id": "order-1",
      "location": {
        "lat": 36.185851,
        "lng": -115.2064059
      },
      "time_windows": [{"earliest": 600, "latest": 1000}],
      "quantity": {
        "weight": 10,
        "volume": 100
      },
      "service_duration": 60,
      "max_time_in_vehicle": 7200,
      "priority": 0
    },
    {
      "id": "order-2",
      "location": {
        "lat": 36.190831,
        "lng": -115.137368
      },
      "time_windows": [{"earliest": 900, "latest": 1500}, {"earliest": 2100, "latest": 3600}],
      "quantity": {
        "weight": 15,
        "volume": 150
      },
      "service_duration": 60,
      "max_time_in_vehicle": 7200,
      "priority": 0
    },
    {
      "id": "order-3",
      "location": {
        "lat": 36.1692548,
        "lng": -115.1312463
      },
      "time_windows": [{"latest": 3000}],
      "quantity": {
        "weight": 25,
        "volume": 250
      },
      "service_duration": 60,
      "max_time_in_vehicle": 7200,
      "priority": 0
    },
    {
      "id": "order-4",
      "location": {
        "lat": 36.1664349,
        "lng": -115.1325665
      },
      "time_windows": [{"earliest": 2100}],
      "quantity": {
        "weight": 10,
        "volume": 100
      },
      "service_duration": 60,
      "max_time_in_vehicle": 7200,
      "priority": 0
    },
    {
      "id": "order-5",
      "location": {
        "lat": 36.15833,
        "lng": -115.1706666
      },
      "quantity": {
        "weight": 10,
        "volume": 100
      },
      "service_duration": 60,
      "max_time_in_vehicle": 7200,
      "priority": 0
    },
    {
      "id": "order-6",
      "location": {
        "lat": 36.1552112,
        "lng": -115.1920527
      },
      "quantity": {
        "weight": 10,
        "volume": 100
      },
      "service_duration": 60,
      "max_time_in_vehicle": 7200,
      "priority": 0
    },
    {
      "id": "order-7",
      "location": {
        "lat": 36.153458,
        "lng": -115.191221
      },
      "quantity": {
        "weight": 10,
        "volume": 100
      },
      "service_duration": 60,
      "max_time_in_vehicle": 7200,
      "priority": 0
    },
    {
      "id": "order-8",
      "location": {
        "lat": 36.168741,
        "lng": -115.211532
      },
      "quantity": {
        "weight": 15,
        "volume": 150
      },
      "service_duration": 60,
      "max_time_in_vehicle": 7200,
      "priority": 0
    },
    {
      "id": "order-9",
      "location": {
        "lat": 36.196647,
        "lng": -115.282064
      },
      "quantity": {
        "weight": 35,
        "volume": 350
      },
      "service_duration": 60,
      "max_time_in_vehicle": 7200,
      "priority": 0
    }
  ],
  "depots": [
    {
      "id": "depot-1",
      "location": {
        "lat": 36.159548,
        "lng": -115.3172336
      }
    }
  ],
  "vehicles": [
    {
      "id": "vehicle-1",
      "start": "depot-1",
      "end": "depot-1",
      "capacity": {
        "weight": 100,
        "volume": 1000
      },
      "max_distance": 50000,
      "max_duration": 10800,
      "max_driving_duration": 7200,
      "max_orders": 5,
      "earliest_start": 0,
      "latest_end": 28800
    },
    {
      "id": "vehicle-2",
      "start": "depot-1",
      "end": "depot-1",
      "capacity": {
        "weight": 110,
        "volume": 1100
      },
      "max_distance": 50000,
      "max_duration": 10800,
      "max_driving_duration": 7200,
      "max_orders": 4,
      "earliest_start": 0,
      "latest_end": 28800
    },
    {
      "id": "vehicle-3",
      "start": "depot-1",
      "end": "depot-1",
      "capacity": {
        "weight": 120,
        "volume": 1200
      },
      "max_distance": 50000,
      "max_duration": 10800,
      "max_driving_duration": 7200,
      "max_orders": 5,
      "earliest_start": 0,
      "latest_end": 28800,
      "breaks": [
        {
          "earliest_start": 2200,
          "latest_start": 2400,
          "duration": 1200
        }
      ]
    }
  ]
}