A drive down every street, planned in one API call
POST /v1/jobs/coverage plans one drive that passes along every street in an area at least once, in the legal direction, as short as we can make it, and splits it into outings of the length or duration you choose. It went public on 30 October 2026, and over the following three weeks it learned to drive each outing turn by turn, to re-plan round a closed street from where the car is, and to run its guidance offline on the phone. It is the shape of survey capture, street sweeping, gritting, refuse rounds and meter reading.
What problem does a coverage plan solve?
The opposite of route optimisation: not which vehicle visits which stop, but one drive that covers every street. That is the Chinese postman problem, and on a real road network it is mostly a question of how much driving you waste. Every one-way street, dead end and banned turn forces some street to be driven twice. That repeated driving is called deadhead, and the planner's job is to keep it small.
We solve it on the routing engine's own graph, so the plan uses exactly the streets, one-way rules and access that the engine routes on.
How do you ask for one?
You send an area and the rules, and poll a job. The example from the API reference, on a small box in central Brighton:
curl -sS -X POST "$BASE/v1/jobs/coverage" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"bbox": [-0.1430, 50.8205, -0.1360, 50.8245],
"costing": "auto",
"optimise": "distance",
"turn_penalties": {"avoid_right": 30, "avoid_u_turn": 200},
"chunk_km": 5,
"start": {"lat": 50.8222, "lon": -0.1405},
"exclude": {
"way_ids": [330714667],
"areas": {"type": "Polygon", "coordinates": [[
[-0.1415, 50.8230], [-0.1395, 50.8230], [-0.1395, 50.8240],
[-0.1415, 50.8240], [-0.1415, 50.8230]
]]}
}
}'
The answer comes back on the asynchronous job lane: a 202 with a job id, then GET /v1/jobs/{id} until it is done, or a signed webhook. Each outing (chunks[]) carries its length, its deadhead, its drive time, its geometry and its steps, and summary says what was covered, what was driven twice and what could not be covered and why.
The options that matter most in practice:
| Field | What it does |
|---|---|
chunk_km | Target outing length, 1 to 150 km |
chunk_loops | Every outing a closed loop that starts and ends at the same junction |
turn_penalties | Metres of extra driving you would accept to avoid a right turn, a left turn or a U-turn |
start | Start where the car is, mid-street and facing its heading, rather than at a junction |
exclude | Streets the plan need not cover, such as another crew's |
avoid | Roads the plan must never drive, not even to connect two streets |
required | Cover only these streets, or stretches of them in metres |
max_outside_m | How far past the area's edge the drive may go to turn round |
The newer options, such as outings by drive time (chunk_time_s) and skipping short dead ends (skip_dead_ends_m), are listed in the MCP tool reference, where an agent can submit the same job.
What does a plan look like on a real town?
On central Brighton, with the default road classes and 15 km outings, a plan covering 256.38 km of street came to a 375.10 km drive. Measured on that same network:
| Setting | Result |
|---|---|
chunk_time_s: 3600 with loops | 19 outings, every one between 45 and 75 minutes, median 57.4 minutes |
skip_dead_ends_m: 50 | 308 dead ends skipped (6.18 km of street), 11.50 km and 129 minutes less driving, U-turns down from 509 to 312 |
drive_time_s against the engine's own time for the same drive | Within 0.01 % at the median |
That last row matters. Before 9 November an outing's time left out the time spent at junctions and ran 32 to 36 % short, which is a crew running out of day.
How does a crew drive it?
POST /v1/coverage/guidance turns a whole outing into one turn-by-turn trip in one call. Each outing is cut into replay pieces that never pass the same junction twice, the engine replays each piece, and the answer has one leg per piece. If any piece is refused, the answer names it and stops. It never swaps in map matching, which is free to drop the very streets the plan exists to cover.
POST /v1/coverage/reroute handles the closed street. Send the drive in progress, where the car is and what is closed, and it answers with the rest of the drive, the streets it now has to skip and how much the detour adds. It is synchronous and stores nothing.
Both also run on the phone. Since the 0.9.0 mobile SDKs, a crew can download a hosted plan and then guide and re-plan it with no signal; in our tests the offline answers matched the hosted ones across 170 drives and 116 re-plans. Planning itself stays on the server.
What does it not do?
- It is not always optimal. The answer says
optimal: trueonly when the planner can prove it; otherwise it returns its best drive with alower_bound, so you can see how far from perfect it might be. - Some turn rules are not applied. Timed, conditional and multi-edge turn restrictions are not part of the plan, and the response says so in its
notes. - Truck plans follow goods-vehicle access, not dimensions. Height, weight and width limits are not applied to a coverage plan.
- Times leave out stops and traffic, so in a town they are optimistic.
- There are size caps: a 100 km² bounding box, 100,000 street edges and 120 seconds of solving. Beyond them the answer is a
422, not a slow job.
What does it cost?
A plan bills 20 standard calls per started square kilometre (premium with truck costing). It is charged on the bounding box when you submit, then settled on the area you actually asked for once it succeeds, with the difference refunded; a failed job is refunded in full. Guidance bills one call per started 50 shape points, and a re-plan bills one call. The rates are on pricing.
Try it
Get a key, send the example above and poll the job. The full request and answer reference is in the API reference, and the stop-by-stop version of the problem is covered in route optimisation. Routing data is © OpenStreetMap contributors.
