# 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.

Source: https://www.wayline.cloud/docs

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](/docs/quickstart) takes you from sign-up to your first successful request in about five minutes.

## What you can build

<CardLinks links={[
  { href: "/docs/api/get-distance", title: "Distance", description: "Road distance and drive time between two points." },
  { href: "/docs/api/compute-matrix", title: "Distance matrix", description: "Every origin × destination pair in one request." },
  { href: "/docs/api/get-route", title: "Route", description: "Turn-by-turn directions and route geometry." },
  { href: "/docs/api/compute-distance-batch", title: "Batch distance", description: "Consecutive legs for check-ins and mileage." },
  { href: "/docs/api/get-nearest", title: "Snap to road", description: "Nearest drivable road for a GPS point." },
  { href: "/docs/api/google-distance-matrix-compat", title: "Google-compatible matrix", description: "Drop-in Distance Matrix JSON." },
]} />

## 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](/docs/concepts/authentication).
2. You send coordinates in **`lat,lng`** order (the same order Google uses). See [Coordinates & formats](/docs/concepts/coordinates).
3. The gateway picks the [region](/docs/concepts/regions-and-coverage) 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](/docs/concepts/units-and-pricing).

Base URL:

```text
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](/docs/sdks). Plain HTTPS works from any language.

## Help and status

- [Errors reference](/docs/errors) — every error code with fixes.
- [Status page](https://www.wayline.cloud/status) — live availability and incidents.
- [Support](/docs/support) — how to reach us and what to include.

Map data © [OpenStreetMap contributors](https://www.openstreetmap.org/copyright).
