# Regions & coverage

> How Wayline selects a routing region from your coordinates, what OUT_OF_COVERAGE and CROSS_REGION_REQUEST mean, and how to check coverage in code.

Source: https://www.wayline.cloud/docs/concepts/regions-and-coverage

Wayline is organized into **regions**. A region is one OpenStreetMap extract, one routing dataset and one boundary polygon. The current list is on the [Coverage page](/coverage) and available from [`GET /v1/coverage`](/docs/api/get-coverage).

Enabled regions today:

## How a region is chosen

For every request the gateway checks which enabled region's boundary contains **all** of the request's points:

- All points in one region → routed on that region's dataset. The region code is returned in the `region` field and the `X-Region` header.
- A point outside every region → `400 OUT_OF_COVERAGE`.
- Points in different regions → `400 CROSS_REGION_REQUEST`.

Neither error is billed.

## Checking coverage in code

```bash
curl "https://api.wayline.cloud/v1/coverage"
```

The response lists each region's code, name, bounding box and map version. Bounding boxes are a quick pre-filter; the boundary polygon is authoritative.

## Map versions

Each region has a `map_version` like `20261121-2330` (UTC build time). Responses include it so you can reproduce results and invalidate your own caches when the map changes. Map updates roll out with zero downtime.
