capabilities.work

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.

  1. Queue an asynchronous route optimization job for the team.
  2. Start the queued optimization job.
  3. Poll the optimization job status and branch on the result.
  4. Apply the optimized routes when the job completed successfully.
  5. 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.