- Home
- Docs
Wayline Distance & Routing API documentation
Everything you need to calculate real road distance and drive time, routes, distance matrices and snapped points with the Wayline API.
Wayline is a Distance & Routing API: send coordinates over HTTPS and get real road distance, estimated drive time, full routes, many-to-many distance matrices and points snapped to the nearest road. Results are computed on the OpenStreetMap road network — never as straight lines — and every response tells you which region and map version produced it.
New here? The Quickstart takes you from sign-up to your first successful request in about five minutes.
What you can build
How the API works
- You authenticate with an API key in the
Authorization: Bearerheader. Test keys are free; live keys are billed. See Authentication & keys. - You send coordinates in
lat,lngorder (the same order Google uses). See Coordinates & formats. - The gateway picks the region whose boundary contains your points and routes on that region’s dataset.
- Successful responses (HTTP 2xx) are billed in units; errors never are. See Units & pricing.
Base URL:
https://api.wayline.cloudSDKs
Official SDKs wrap retries, timeouts and typed errors for TypeScript/JavaScript, Python, Go, PHP, Ruby, Java/Kotlin and Dart. See SDKs. Plain HTTPS works from any language.
Help and status
- Errors reference — every error code with fixes.
- Status page — live availability and incidents.
- Support — how to reach us and what to include.
Map data © OpenStreetMap contributors.