The simplest form of route optimization
Time-windows and durations are optional. If you are only interested in the optimal route without considering time, you can just omit the parameters. On large-scale problems, this will result in tremendous performance improvements! Keep in mind that the response will not include ETA values.
{
"visits": {
"order_1": {
"location": {
"name": "6800 Cambie",
"lat": 49.227107,
"lng": -123.1163085
}
},
"order_2": {
"location": {
"name": "3780 Arbutus",
"lat": 49.2474624,
"lng": -123.1532338
}
},
"order_3": {
"location": {
"name": "800 Robson",
"lat": 49.2819229,
"lng": -123.1211844
}
}
},
"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
}
}
}
}
{
"status": "success",
"total_travel_time": 31.983334,
"total_idle_time": 0,
"num_unserved": 0,
"unserved": null,
"solution": {
"vehicle_1": [
{
"location_id": "depot",
"location_name": "800 Kingsway"
},
{
"location_id": "order_3",
"location_name": "800 Robson"
},
{
"location_id": "order_2",
"location_name": "3780 Arbutus"
},
{
"location_id": "order_1",
"location_name": "6800 Cambie"
},
{
"location_id": "depot",
"location_name": "800 Kingsway"
}
]
}
}