Visits/Fleet/Output
The visits object for /pdp-long remains exactly the same as that for /vrp-long, with two exceptions. Instead of a single location object, each visit has a pickup and dropoffobject containing their own location objects and start, end and duration parameters. Additionally, there is an optional time_limit parameter that specifies the maximum in vehicle time (in minutes) that a job can take.
{
"order_1": {
"load": 1,
"time_limit": 30,
"pickup": {
"location": {
"name": "3780 Arbutus",
"lat": 49.2474624,
"lng": -123.1532338
},
"start": "08:00",
"end": "09:00",
"duration": 10
},
"dropoff": {
"location": {
"name": "6800 Cambie",
"lat": 49.227107,
"lng": -123.1163085
},
"start": "08:00",
"end": "09:00",
"duration": 10
}
}
}The fleet object and output for /pdp-long remains exactly the same as that for /vrp-long.
Last updated
Was this helpful?