Skip to main content

Overview

Motion is a drop-in replacement for the Google Routes API that adds segment-level physics enrichment for heavy freight. Every route step includes grade, curvature, fuel burn, zone awareness, and road classification - computed from real USGS elevation data and road geometry. It exposes two interfaces to the same routing engine:

Google-Compatible

Drop-in replacement for Google Routes API. Same request and response format - change only the base URL.

Route Resources

Stateful routes with async processing, webhooks, idempotency, and telemetry.

Endpoints

Google-Compatible

Route Management

Enrichment

Every route step is enriched with physics data computed from elevation models, road geometry, and vehicle parameters:

Vehicle Presets

Two built-in presets are available. All parameters can be individually overridden in the request.

Routing Profiles

Profiles control the relative weight of each enrichment factor:

Errors

All error responses use a consistent structure:
Rate-limited responses include X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers.

Idempotency

POST /v1/routes accepts an Idempotency-Key header for safe retries. Requests with the same key and body return a cached response. Reusing a key with a different body returns 422.