Documentation menu

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.

Updated Dec 1, 2026 View Markdown

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

  1. You authenticate with an API key in the Authorization: Bearer header. Test keys are free; live keys are billed. See Authentication & keys.
  2. You send coordinates in lat,lng order (the same order Google uses). See Coordinates & formats.
  3. The gateway picks the region whose boundary contains your points and routes on that region’s dataset.
  4. Successful responses (HTTP 2xx) are billed in units; errors never are. See Units & pricing.

Base URL:

Output
https://api.wayline.cloud

SDKs

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

Map data © OpenStreetMap contributors.