Route Optimisation completed

Token in body

{
    "token": "txkINFbMAAk6uHwL-qHLkA",
    "topic": "optimisation.completed",
    "updated_at": "2021-07-29T16:47:01.428972+10:00",
    "optimisation_info": {
        "id": 1754,
        "day": "2021-07-30",
        "log": {
            "steps": [
                {
                    "name": "Composing the distance matrix",
                    "completed": true
                },
                {
                    "name": "Looking for the optimum routes",
                    "completed": true
                },
                {
                    "name": "Assigning jobs between the drivers",
                    "completed": true
                }
            ],
            "messages": [
                {
                    "text": "Optimisation started",
                    "time": "2021-07-29T16:47:01.446065+10:00"
                },
                {
                    "text": "2 new jobs were assigned to Arthur Dole during the Optimisation",
                    "time": "2021-07-29T16:47:14.103406+10:00"
                }
            ],
            "progress": 100
        },
        "type": "ADVANCED",
        "group": "scheduled",
        "state": "COMPLETED",
        "routes": [
            {
                "id": 1729,
                "color": "#F79F79",
                "state": "CREATED",
                "driver": {
                    "car": {
                        "capacity": 20,
                        "car_type": 1,
                        "car_type_name": "Car"
                    },
                    "phone": "+614339923333",
                    "status": "assigned",
                    "full_name": "Arthur Dole",
                    "is_online": false,
                    "member_id": 73709741,
                    "work_status": "not_working",
                    "last_location": {
                        "location": "53.901798,27.5037407"
                    },
                    "thumb_avatar_100x100": "/media/thumbnails/Member/c7090d8d-c238-48eb-bdb3-f691db55fea3_100x100.jpg"
                },
                "points": [
                    {
                        "id": 11579,
                        "number": 1,
                        "distance": 0,
                        "end_time": "2021-07-30T16:00:00+10:00",
                        "point_kind": "hub",
                        "point_type": "hub",
                        "start_time": "2021-07-30T16:00:00+10:00",
                        "driving_time": 0,
                        "point_object": {
                            "id": 379,
                            "name": "Hub",
                            "phone": "+61294446653",
                            "location": {
                                "id": 330,
                                "address": "31 Sturt St, Southbank VIC 3006, Australia",
                                "location": {
                                    "lat": -37.8238758,
                                    "lng": 144.9676033
                                },
                                "description": ""
                            }
                        },
                        "service_time": 0,
                        "planned_arrival": "2021-07-30T16:00:00+10:00",
                        "point_object_id": 379,
                        "utilized_capacity": 0,
                        "planned_arrival_after": "2021-07-30T15:00:00+10:00",
                        "planned_arrival_before": "2021-07-30T18:00:00+10:00"
                    },
                    {
                        "id": 11580,
                        "number": 2,
                        "distance": 8891,
                        "end_time": "2021-07-30T16:48:37+10:00",
                        "point_kind": "delivery",
                        "point_type": "order",
                        "start_time": "2021-07-30T16:18:37+10:00",
                        "driving_time": 1117,
                        "point_object": {
                            "pickup": null,
                            "status": "assigned",
                            "barcodes": [
                                {
                                    "id": 3569,
                                    "comment": "",
                                    "scanned": false,
                                    "required": false,
                                    "code_data": "7678l",
                                    "created_by_driver": false,
                                    "scanned_upon_delivery": false,
                                    "scanned_at_the_warehouse": false
                                }
                            ],
                            "customer": {
                                "id": 42181,
                                "name": "Robert Allen",
                                "email": "",
                                "phone": ""
                            },
                            "order_id": 184560588,
                            "external_id": null,
                            "pickup_after": null,
                            "deliver_after": null,
                            "pickup_before": null,
                            "deliver_before": "2021-07-30T16:50:00+10:00",
                            "pickup_address": null,
                            "deliver_address": {
                                "id": 71946,
                                "address": "Fairfield Park Dr, Fairfield VIC 3078, Australia",
                                "location": {
                                    "lat": -37.78518,
                                    "lng": 145.0137071
                                },
                                "description": "",
                                "raw_address": "Fairfield Park Dr, Fairfield VIC 3078, Australia"
                            },
                            "is_concatenated_order": false,
                            "concatenated_order": null,
                            "orders": null
                        },
                        "service_time": 1800,
                        "planned_arrival": "2021-07-30T16:18:37+10:00",
                        "point_object_id": 129823,
                        "utilized_capacity": 0,
                        "planned_arrival_after": "2021-07-30T15:15:00+10:00",
                        "planned_arrival_before": "2021-07-30T18:15:00+10:00"
                    },
                    {
                        "id": 6219,
                        "number": 3,
                        "point_type": null,
                        "point_kind": "break",
                        "point_object": null,
                        "point_object_id": null,
                        "service_time": 600,
                        "driving_time": 0,
                        "distance": 0,
                        "start_time": "2021-07-30T16:50:00+10:00",
                        "end_time": "2021-07-30T17:00:00+10:00",
                        "planned_arrival": "2021-07-30T16:50:00+10:00",
                        "planned_arrival_after": "2021-07-30T16:30:00+10:00",
                        "planned_arrival_before": "2021-07-30T18:30:00+10:00",
                        "utilized_capacity": 0
                    },
                    {
                        "id": 11581,
                        "number": 4,
                        "distance": 13983,
                        "end_time": "2021-07-30T17:32:39+10:00",
                        "point_kind": "delivery",
                        "point_type": "order",
                        "start_time": "2021-07-30T17:02:39+10:00",
                        "driving_time": 842,
                        "point_object": {
                            "pickup": null,
                            "status": "assigned",
                            "barcodes": [
                                {
                                    "id": 3568,
                                    "comment": "",
                                    "scanned": false,
                                    "required": false,
                                    "code_data": "7876o",
                                    "created_by_driver": false,
                                    "scanned_upon_delivery": false,
                                    "scanned_at_the_warehouse": false
                                }
                            ],
                            "customer": {
                                "id": 42174,
                                "name": "Dorian Shapiro",
                                "email": "",
                                "phone": ""
                            },
                            "order_id": 177652307,
                            "external_id": null,
                            "pickup_after": null,
                            "deliver_after": null,
                            "pickup_before": null,
                            "deliver_before": "2021-07-30T18:45:00+10:00",
                            "pickup_address": null,
                            "deliver_address": {
                                "id": 71947,
                                "address": "6-16 Joseph St, Blackburn North VIC 3130, Australia",
                                "location": {
                                    "lat": -37.7999755,
                                    "lng": 145.1437283
                                },
                                "description": "",
                                "raw_address": "6-16 Joseph St, Blackburn North VIC 3130, Australia"
                            },
                            "is_concatenated_order": false,
                            "concatenated_order": null,
                            "orders": null
                        },
                        "service_time": 1800,
                        "planned_arrival": "2021-07-30T17:02:39+10:00",
                        "point_object_id": 129820,
                        "utilized_capacity": 0,
                        "planned_arrival_after": "2021-07-30T16:00:00+10:00",
                        "planned_arrival_before": "2021-07-30T19:00:00+10:00"
                    },
                    {
                        "id": 11588,
                        "number": 5,
                        "distance": 2506,
                        "end_time": "2021-07-30T22:08:34+10:00",
                        "point_kind": "hub",
                        "point_type": "hub",
                        "start_time": "2021-07-30T22:08:34+10:00",
                        "driving_time": 661,
                        "point_object": {
                            "id": 379,
                            "name": "Hub",
                            "phone": "+614294446653",
                            "location": {
                                "id": 330,
                                "address": "31 Sturt St, Southbank VIC 3006, Australia",
                                "location": {
                                    "lat": -37.8238758,
                                    "lng": 144.9676033
                                },
                                "description": ""
                            }
                        },
                        "service_time": 0,
                        "planned_arrival": "2021-07-30T22:08:34+10:00",
                        "point_object_id": 379,
                        "utilized_capacity": 0,
                        "planned_arrival_after": "2021-07-30T21:00:00+10:00",
                        "planned_arrival_before": "2021-07-31T00:00:00+10:00"
                    }
                ],
                "options": {},
                "end_time": "2021-07-30T22:08:34+10:00",
                "start_time": "2021-07-30T16:00:00+10:00",
                "total_time": 22114,
                "driving_time": 7714,
                "orders_count": 8,
                "driving_distance": 72115
            }
        ],
        "options": {
            "end_hub": 379,
            "end_place": "hub_location",
            "start_hub": 379,
            "start_place": "hub_location",
            "service_time": 30,
            "working_hours": {
                "lower": "08:00",
                "upper": "17:00"
            },
            "pickup_service_time": 5,
            "re_optimise_assigned": false,
            "use_vehicle_capacity": false
        },
        "task_status": "completed",
        "customers_notified": false
    }
}

Token in headers

{
    "Authorization": "Token MlfqEdN60b9fLOHEPdPGUQ",
}

Body

{
    "topic": "optimisation.completed",
    "updated_at": "2021-07-29T16:47:01.428972+10:00",
    "optimisation_info": {
        "id": 1754,
        "day": "2021-07-30",
        "log": {
            "steps": [
                {
                    "name": "Composing the distance matrix",
                    "completed": true
                },
                {
                    "name": "Looking for the optimum routes",
                    "completed": true
                },
                {
                    "name": "Assigning jobs between the drivers",
                    "completed": true
                }
            ],
            "messages": [
                {
                    "text": "Optimisation started",
                    "time": "2021-07-29T16:47:01.446065+10:00"
                },
                {
                    "text": "2 new jobs were assigned to Arthur Dole during the Optimisation",
                    "time": "2021-07-29T16:47:14.103406+10:00"
                }
            ],
            "progress": 100
        },
        "type": "ADVANCED",
        "group": "scheduled",
        "state": "COMPLETED",
        "routes": [
            {
                "id": 1729,
                "color": "#F79F79",
                "state": "CREATED",
                "driver": {
                    "car": {
                        "capacity": 20,
                        "car_type": 1,
                        "car_type_name": "Car"
                    },
                    "phone": "+614339923333",
                    "status": "assigned",
                    "full_name": "Arthur Dole",
                    "is_online": false,
                    "member_id": 73709741,
                    "work_status": "not_working",
                    "last_location": {
                        "location": "53.901798,27.5037407"
                    },
                    "thumb_avatar_100x100": "/media/thumbnails/Member/c7090d8d-c238-48eb-bdb3-f691db55fea3_100x100.jpg"
                },
                "points": [
                    {
                        "id": 11579,
                        "number": 1,
                        "distance": 0,
                        "end_time": "2021-07-30T16:00:00+10:00",
                        "point_kind": "hub",
                        "point_type": "hub",
                        "start_time": "2021-07-30T16:00:00+10:00",
                        "driving_time": 0,
                        "point_object": {
                            "id": 379,
                            "name": "Hub",
                            "phone": "+61294446653",
                            "location": {
                                "id": 330,
                                "address": "31 Sturt St, Southbank VIC 3006, Australia",
                                "location": {
                                    "lat": -37.8238758,
                                    "lng": 144.9676033
                                },
                                "description": ""
                            }
                        },
                        "service_time": 0,
                        "planned_arrival": "2021-07-30T16:00:00+10:00",
                        "point_object_id": 379,
                        "utilized_capacity": 0,
                        "planned_arrival_after": "2021-07-30T15:00:00+10:00",
                        "planned_arrival_before": "2021-07-30T18:00:00+10:00"
                    },
                    {
                        "id": 11580,
                        "number": 2,
                        "distance": 8891,
                        "end_time": "2021-07-30T16:48:37+10:00",
                        "point_kind": "delivery",
                        "point_type": "order",
                        "start_time": "2021-07-30T16:18:37+10:00",
                        "driving_time": 1117,
                        "point_object": {
                            "pickup": null,
                            "status": "assigned",
                            "barcodes": [
                                {
                                    "id": 3569,
                                    "comment": "",
                                    "scanned": false,
                                    "required": false,
                                    "code_data": "7678l",
                                    "created_by_driver": false,
                                    "scanned_upon_delivery": false,
                                    "scanned_at_the_warehouse": false
                                }
                            ],
                            "customer": {
                                "id": 42181,
                                "name": "Robert Allen",
                                "email": "",
                                "phone": ""
                            },
                            "order_id": 184560588,
                            "external_id": null,
                            "pickup_after": null,
                            "deliver_after": null,
                            "pickup_before": null,
                            "deliver_before": "2021-07-30T16:50:00+10:00",
                            "pickup_address": null,
                            "deliver_address": {
                                "id": 71946,
                                "address": "Fairfield Park Dr, Fairfield VIC 3078, Australia",
                                "location": {
                                    "lat": -37.78518,
                                    "lng": 145.0137071
                                },
                                "description": "",
                                "raw_address": "Fairfield Park Dr, Fairfield VIC 3078, Australia"
                            },
                            "is_concatenated_order": false,
                            "concatenated_order": null,
                            "orders": null
                        },
                        "service_time": 1800,
                        "planned_arrival": "2021-07-30T16:18:37+10:00",
                        "point_object_id": 129823,
                        "utilized_capacity": 0,
                        "planned_arrival_after": "2021-07-30T15:15:00+10:00",
                        "planned_arrival_before": "2021-07-30T18:15:00+10:00"
                    },
                    {
                        "id": 6219,
                        "number": 3,
                        "point_type": null,
                        "point_kind": "break",
                        "point_object": null,
                        "point_object_id": null,
                        "service_time": 600,
                        "driving_time": 0,
                        "distance": 0,
                        "start_time": "2021-07-30T16:50:00+10:00",
                        "end_time": "2021-07-30T17:00:00+10:00",
                        "planned_arrival": "2021-07-30T16:50:00+10:00",
                        "planned_arrival_after": "2021-07-30T16:30:00+10:00",
                        "planned_arrival_before": "2021-07-30T18:30:00+10:00",
                        "utilized_capacity": 0
                    },
                    {
                        "id": 11581,
                        "number": 4,
                        "distance": 13983,
                        "end_time": "2021-07-30T17:32:39+10:00",
                        "point_kind": "delivery",
                        "point_type": "order",
                        "start_time": "2021-07-30T17:02:39+10:00",
                        "driving_time": 842,
                        "point_object": {
                            "pickup": null,
                            "status": "assigned",
                            "barcodes": [
                                {
                                    "id": 3568,
                                    "comment": "",
                                    "scanned": false,
                                    "required": false,
                                    "code_data": "7876o",
                                    "created_by_driver": false,
                                    "scanned_upon_delivery": false,
                                    "scanned_at_the_warehouse": false
                                }
                            ],
                            "customer": {
                                "id": 42174,
                                "name": "Dorian Shapiro",
                                "email": "",
                                "phone": ""
                            },
                            "order_id": 177652307,
                            "external_id": null,
                            "pickup_after": null,
                            "deliver_after": null,
                            "pickup_before": null,
                            "deliver_before": "2021-07-30T18:45:00+10:00",
                            "pickup_address": null,
                            "deliver_address": {
                                "id": 71947,
                                "address": "6-16 Joseph St, Blackburn North VIC 3130, Australia",
                                "location": {
                                    "lat": -37.7999755,
                                    "lng": 145.1437283
                                },
                                "description": "",
                                "raw_address": "6-16 Joseph St, Blackburn North VIC 3130, Australia"
                            },
                            "is_concatenated_order": false,
                            "concatenated_order": null,
                            "orders": null
                        },
                        "service_time": 1800,
                        "planned_arrival": "2021-07-30T17:02:39+10:00",
                        "point_object_id": 129820,
                        "utilized_capacity": 0,
                        "planned_arrival_after": "2021-07-30T16:00:00+10:00",
                        "planned_arrival_before": "2021-07-30T19:00:00+10:00"
                    },
                    {
                        "id": 11588,
                        "number": 5,
                        "distance": 2506,
                        "end_time": "2021-07-30T22:08:34+10:00",
                        "point_kind": "hub",
                        "point_type": "hub",
                        "start_time": "2021-07-30T22:08:34+10:00",
                        "driving_time": 661,
                        "point_object": {
                            "id": 379,
                            "name": "Hub",
                            "phone": "+614294446653",
                            "location": {
                                "id": 330,
                                "address": "31 Sturt St, Southbank VIC 3006, Australia",
                                "location": {
                                    "lat": -37.8238758,
                                    "lng": 144.9676033
                                },
                                "description": ""
                            }
                        },
                        "service_time": 0,
                        "planned_arrival": "2021-07-30T22:08:34+10:00",
                        "point_object_id": 379,
                        "utilized_capacity": 0,
                        "planned_arrival_after": "2021-07-30T21:00:00+10:00",
                        "planned_arrival_before": "2021-07-31T00:00:00+10:00"
                    }
                ],
                "options": {},
                "end_time": "2021-07-30T22:08:34+10:00",
                "start_time": "2021-07-30T16:00:00+10:00",
                "total_time": 22114,
                "driving_time": 7714,
                "orders_count": 8,
                "driving_distance": 72115
            }
        ],
        "options": {
            "end_hub": 379,
            "end_place": "hub_location",
            "start_hub": 379,
            "start_place": "hub_location",
            "service_time": 30,
            "working_hours": {
                "lower": "08:00",
                "upper": "17:00"
            },
            "pickup_service_time": 5,
            "re_optimise_assigned": false,
            "use_vehicle_capacity": false
        },
        "task_status": "completed",
        "customers_notified": false
    }
}