Optimize Team Routes
A 5-step recipe with Onfleet. We can help you get access.
Recipe · 5 steps
Optimize Team Routes
with Onfleet · Last-Mile Delivery Operations Management
Initialize, start, poll, and apply (or abort) a route optimization job.
- Queue an asynchronous route optimization job for the team.
- Start the queued optimization job.
- Poll the optimization job status and branch on the result.
- Apply the optimized routes when the job completed successfully.
- Abort the optimization job when it failed to release resources.
What you'll need to have ready
- team: The team id to optimize routes for.
- startTime: The optimization window start in Unix milliseconds.
- endTime: The optimization window end in Unix milliseconds.
- tasks: Optional explicit list of task ids to include.
For your developer
Arazzo workflow onfleet:optimize-team-routes, 5 operations: initializeOptimization → startOptimization → getOptimizationStatus → applyOptimization → abortOptimization. Specs on APIs.io.