Routific · Example Payload

Routific Solve Vrp Example

RouteOptimizationVRPPickupAndDeliveryLogisticsLastMileDeliveryDeliveryFleetManagementDispatchDeliveryManagement

Routific Solve Vrp Example is an example object payload from Routific, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.routific.com/v1/vrp",
    "headers": {
      "Content-Type": "application/json",
      "Authorization": "bearer <YOUR_TOKEN>"
    },
    "body": {
      "visits": {
        "order_1": {
          "location": {
            "name": "6800 Cambie",
            "lat": 49.227107,
            "lng": -123.1163085
          },
          "start": "9:00",
          "end": "12:00",
          "duration": 10
        },
        "order_2": {
          "location": {
            "name": "3780 Arbutus",
            "lat": 49.2474624,
            "lng": -123.1532338
          },
          "start": "9:00",
          "end": "12:00",
          "duration": 10
        },
        "order_3": {
          "location": {
            "name": "800 Robson",
            "lat": 49.2819229,
            "lng": -123.1211844
          },
          "start": "9:00",
          "end": "12:00",
          "duration": 10
        }
      },
      "fleet": {
        "vehicle_1": {
          "start_location": {
            "id": "depot",
            "name": "800 Kingsway",
            "lat": 49.2553636,
            "lng": -123.0873365
          },
          "end_location": {
            "id": "depot",
            "name": "800 Kingsway",
            "lat": 49.2553636,
            "lng": -123.0873365
          },
          "shift_start": "8:00",
          "shift_end": "12:00"
        }
      },
      "options": {
        "traffic": "slow",
        "polylines": false
      }
    }
  },
  "response": {
    "status": 200,
    "body": {
      "status": "success",
      "total_travel_time": 29,
      "num_unserved": 0,
      "unserved": [],
      "solution": {
        "vehicle_1": [
          {
            "location_id": "depot",
            "arrival_time": "8:00",
            "finish_time": "8:00"
          },
          {
            "location_id": "order_3",
            "arrival_time": "9:00",
            "finish_time": "9:10"
          },
          {
            "location_id": "order_2",
            "arrival_time": "9:25",
            "finish_time": "9:35"
          },
          {
            "location_id": "order_1",
            "arrival_time": "9:51",
            "finish_time": "10:01"
          },
          {
            "location_id": "depot",
            "arrival_time": "10:14",
            "finish_time": "10:14"
          }
        ]
      }
    }
  }
}