Skip to main content

Your first route in 7 lines

Motion is a drop-in replacement for the Google Routes API that adds physics-based enrichment for heavy freight - grade, curvature, fuel burn, and zone awareness on every step.
1

Start the API

The API starts at http://localhost:8000. Verify with:
2

Compute your first route

Send a request from Chicago downtown to Midway - that’s it:
The response is identical to Google’s computeRoutes - same fields, same format - but every step includes an enrichment object with physics data:
3

Try the RESTful Routes API

For async processing, webhooks, and route persistence - use the /v1/routes endpoints:
Then retrieve it anytime, or fetch its segment-level telemetry:

What makes Motion different

Google-compatible

Same request/response format as Google Routes API. Change your base URL and get enrichment for free.

Physics enrichment

Grade, curvature, fuel burn, speed limits, and road class on every step - computed from USGS elevation data and road geometry.

Stateful routes

Create, retrieve, poll, and delete routes. Async processing with webhook notifications for long computations.

Idempotent & safe

Idempotency keys for safe retries. Rate limiting with clear headers. Consistent error responses.

Next steps

API Reference

Explore all endpoints with interactive examples.

Tech Stack

Learn about the architecture and run locally.