Creates a route resource with physics enrichment.
200 with the completed route inline.202 with status: "processing". Poll GET /v1/routes/{id} or use a webhookUrl to be notified when it completes.A unique key to ensure idempotent route creation. If a request with the same key was already processed, the cached response is returned. If the same key is reused with a different request body, a 422 error is returned.
"req_abc123"
Request body for route computation. Accepts all Google Routes API fields — unsupported fields are silently ignored.
Origin waypoint (required)
Destination waypoint (required)
Intermediate waypoints (stops or pass-through points)
Travel mode. Only DRIVE is supported (truck routing).
Routing preference. Traffic is not currently modeled.
Departure time in ISO 8601 UTC format. Affects school zone detection and time-based routing.
When true and no intermediate waypoints, returns up to 3 alternative routes.
Route modifiers (avoid tolls, highways, ferries)
Language for navigation instructions
Vehicle specification for physics enrichment. Defaults to SEMI_TRAILER preset if omitted.
Routing profile that adjusts enrichment weights
balanced, fuel_optimal, time_optimal, fatigue_aware Override individual profile weights (e.g. {"fuelWeight": 1.5})
Webhook URL for async route completion notifications. Only used by POST /v1/routes.
Route computed synchronously (fast path). Status is complete with full route data.
A route resource. Used by the /v1/routes endpoint family.
Unique route ID (prefixed with route_)
"route_01HYX3MPK5XJQJG0NB0PRSDVWC"
Object type (always route)
route Current status of the route computation.
processing - route is still being computed (routes array is empty)complete - route computation finished (routes array is populated)failed - route computation failed (error object is populated)processing, complete, failed ISO 8601 UTC timestamp of creation
"2026-02-28T15:12:32Z"
Computed routes (empty while processing)
Error details (populated when status is failed)