Solve
Submit a vehicle routing problem and receive optimized routes
Body
Request body for POST /v3/routing/solve.
Warm start: the plan the search starts from instead of constructing
from scratch (re-optimization). A result's plan goes in as it stands.
See plan.routes[].locked_count for freezing a dispatched prefix.
A hint, not a guarantee: an unlocked stop that violates a hard
constraint (e.g. capacity, skills, eligibility, limits.*, or a time
window with no per_late_hour set) is left unassigned and the
search reinserts it wherever it legitimately fits, or it surfaces in
unassigned[] with a typed reason. On synchronous solve and stream, an
infeasible locked stop is a 400. POST /v3/routing/runs checks the
problem at submission, not the plan, so there the run ends failed
with BAD_REQUEST instead. A pinned stop outside a locked_count
prefix (a shipment leg whose other leg is inside counts as inside) is
never a 400 or a failed run: one that cannot be served is in
unassigned[] (see pinned).
Response
Solution found.
The result of POST /v3/routing/solve and POST /v3/routing/evaluate:
one shape for a plan the solver built and a plan it was given to score.
Advisories: inputs the request carried that were adjusted or that
changed nothing, such as an options.time_limit_s below the 0.1 s
floor (time_limit_raised) or options.travel_fallback with
travel.engine: "straight_line" (no_effect). Always present, empty
when there are none; at most 100 are returned. Each item has a
code, a pointer to the field and a message. Accept codes you do
not know. On evaluate, a pinned or locked_count in the plan is
reported as no_effect, since evaluate scores the plan as listed.
How the best plan improved during the search, oldest first: the
starting plan, every improvement (thinned to at most 500 entries), and
the final plan, which equals summary.score (it can equal, or be
slightly worse than, the entry before it). Present on every solve;
absent on evaluate, which does not search. A large request that is
solved in parts has the final entry alone.