Download OpenAPI specification:Download
request with the points and vehicles definition to plan routes for
Array of objects the list of points (locations) the trips needs to be generated for | |
Array of objects list of vehicles that will be servicing and traveling to the points | |
object start location for the trips | |
object end location for the trips (optional) | |
startDateTime | integer <int64> start time for the trips |
optimization | string Enum: "time" "distance" "cost" optimization mode for the trips |
adjustStartDateTime | boolean optimize the start time of the trip |
avoidToll | boolean avoid toll gates (optional) |
{- "points": [
- {
- "id": "Store1",
- "lat": 25.14077180890471,
- "lng": 55.423957684362954,
- "isHardRelationship": true,
- "isOffloading": true,
- "serviceTimeInMinutes": 40,
- "numberOfUnits": 30,
- "vehiclesAvailable": [
- "Vehicle1",
- "Vehicle2"
], - "timeSlot": {
- "start": 1652763600000,
- "end": 1652767200000
}, - "parentPointId": "DC1"
}
], - "vehicles": [
- {
- "id": "Vehicle1",
- "type": "truck",
- "number": 1,
- "maxNumberOfVehicles": 2,
- "unitCapacity": 30,
- "maxTravelTimeMinutes": 420,
- "maxTravelDistanceKm": 300,
- "monthlyFixedCostAED": 2500,
- "variableCostKmAED": 1.12,
- "maxSpeedInKmph": 80
}
], - "startLocation": {
- "lat": 25.14075888672427,
- "lng": 55.41978080142924
}, - "endLocation": {
- "lat": 25.14075888672427,
- "lng": 55.41978080142924
}, - "startDateTime": 1652731200000,
- "optimization": "time",
- "adjustStartDateTime": true,
- "avoidToll": true
}
{- "planId": "21296b17-9700-489e-b6fb-91c13d04712b",
- "datetime": 1654188679204,
- "trips": [
- {
- "tripId": "824346c2-6207-4b10-8ced-de9a7c78f5a5",
- "vehicleType": "truck",
- "vehicleUnitCapacity": 30,
- "summary": {
- "travelTimeInSeconds": 2523,
- "distanceInMeter": 38999,
- "startTime": 1652731200000,
- "endTime": 1652731780000
}, - "trip": [
- {
- "pointId": "Start",
- "lat": 25.14075888672427,
- "lng": 55.41978080142924,
- "parentPointId": null,
- "serviceTimeInMinutes": 0,
- "numberOfUnits": 0,
- "isOffloading": true,
- "timeSlot": {
- "start": 1640980800000,
- "end": 1640980800000
}, - "vehicleCurrentCapacityAfter": 30,
- "waitingTimeInMinutes": 10,
- "estimatedArrivalTime": 1652731200000,
- "estimatedDepartureTime": 1652731200000,
- "isTimeWindowSatisfied": true
}
]
}
], - "unservedNodes": [
- "string"
]
}