Skip to content

Route Optimisation V4

V4 endpoints offer performance enhancements over V3 by enabling the retrieval of complete RO details through distinct requests.

  • The “Get Optimisation” endpoint supplies essential details about the route, such as estimated arrival, distance, and travel time.
  • Meanwhile, the “Get Optimisation points” endpoint provides an in-depth look at the points within the Optimization route, including hub specifics, detailed job information, concatenated order details, start/end locations, and more.

This functionality can be accessed through both Single-Key and Multi-Key methods.

Additionally, object details have been removed from the optimization API, and the list of points with their corresponding objects can now be obtained from separate API sources.

List Optimisations

Request

Security
key
Query
page_sizestring
pagestring
day_afterstring, (date)

If set, returns optimisations with date greater than or equal to the passed value. Example: "2020-01-12". (ISO-8601). (ISO-8601)

day_beforestring, (date)

If set, returns optimisations with date less than or equal to the passed value. Example: "2020-01-13". (ISO-8601). (ISO-8601)

merchantinteger, (int32)
Bodyapplication/json
idinteger, (int32)
typestring
daystring, (date)

Date in ISO-8601 YYYY-MM-DD.

merchantinteger, (int32)
optionsobject
task_statusstring

Possible values are created, in_progress, completed. Here task means background task that performs optimisation. You should wait for status completed to work with optimisation results.

routesArray of objects
statestring

State of this optimisation. Possible values are CREATED, VALIDATION, OPTIMISING, COMPLETED, RUNNING, FINISHED, FAILED. Status COMPLETED means that optimisation process has successfully completed, driver routes has created. FINISHED - when drivers completes all optimised jobs. FAILED - in case of some failure.

groupstring
customers_notifiedboolean
logobject
curl -i -X GET \
  'https://developer.radaro.com.au/_mock/split-external-api/api/webhooks/ro/optimisation/v4/?page_size=string&page=string&day_after=2019-08-24&day_before=2019-08-24&merchant=0&key=YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0,
    "type": "string",
    "day": "2019-08-24",
    "merchant": 0,
    "options": {
      "order_ids": [
        0
      ],
      "external_ids": [
        "string"
      ],
      "member_ids": [
        0
      ],
      "working_hours": {
        "lower": "string",
        "upper": "string"
      },
      "service_time": 0,
      "pickup_service_time": 0,
      "start_place": "string",
      "start_hub": 0,
      "end_place": "string",
      "end_hub": 0,
      "re_optimise_assigned": true,
      "use_vehicle_capacity": true,
      "use_all_not_assigned_jobs": true
    },
    "task_status": "string",
    "routes": [
      {
        "id": 0,
        "driver": 0,
        "total_time": 0,
        "driving_time": 0,
        "driving_distance": 0,
        "start_time": "string",
        "end_time": "string",
        "orders_count": "string",
        "points": [
          {
            "id": 0,
            "number": 0,
            "point_type": "string",
            "point_kind": "string",
            "point_object_id": 0,
            "point_object": {},
            "service_time": 0,
            "driving_time": 0,
            "distance": 0,
            "start_time": "string",
            "end_time": "string",
            "planned_arrival_after": "string",
            "planned_arrival_before": "string",
            "path_polyline": "string"
          }
        ],
        "color": "string"
      }
    ],
    "state": "string",
    "group": "string",
    "customers_notified": true,
    "log": {
      "messages": [
        {
          "text": "string",
          "time": "string"
        }
      ],
      "percent": 0,
      "steps": [
        {
          "name": "string",
          "completed": true
        }
      ]
    }
  }'

Responses

200

Bodyapplication/json
countinteger
Default:0
Example:4
nextany
previousany
resultsArray of objects(route_optimisation_v4)
Response
{ "count": 4, "next": null, "previous": null, "results": [ { … }, { … }, { … }, { … } ] }