Skip to content

Route Optimisation V5

Route Optimisation V4 + Added support for the following

In options ability to pass
  • objectives
  • use_driver_proficiency
  • use_driver_costs
  • use_territories
Added to Optimisation and DriverRoute objects
  • cost
  • max_utilized_capacities
Added to Point object
  • utilized_capacities

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
costinteger, (int32)
curl -i -X GET \
  'https://developer.radaro.com.au/_mock/split-external-api/api/webhooks/ro/optimisation/v5/?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": [
        "string"
      ],
      "external_ids": [
        "string"
      ],
      "member_ids": [
        0
      ],
      "working_hours": {
        "lower": "string",
        "upper": "string"
      },
      "service_time_sec": 0,
      "pickup_service_time_sec": 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,
      "use_driver_proficiency": true,
      "use_driver_costs": true,
      "use_territories": true,
      "objectives": [
        "string"
      ]
    },
    "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
        }
      ]
    },
    "cost": 0
  }'

Responses

200

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