coverage_guidance
Turn-by-turn guidance for one drive of a finished coverage plan (submit_optimise_job with kind: "coverage", read with get_job), in one call. Give job_id (the coverage job, the caller's own and succeeded), chunk_id (the outing's id in result.chunks, from 1) and drive: "outing" (default, the outing itself), "transfer" (the drive into that outing from the previous one's end, or from where the car is; chunk_loops plans) or "transfer_to_start" (the plan's drive back to its start; no chunk_id). The gateway walks every piece of that drive's trace_route_parts on the engine's exact edge walk and answers one trip: legs has one entry per piece in driving order, each with its maneuvers, plus the whole drive's distance_m, duration_s and geometry_polyline6. Pieces join mid-street wherever the plan allowed: a leg's closing arrival and the next leg's opening departure at the same point mean carry straight on, not stop. Exact or nothing: it never falls back to map matching (which drops streets driven in and straight back out), so a piece the engine refuses is an error naming that piece and the engine's own words. Metered by the gateway as one call at the size of a /trace_route of the drive (one call per started block of shape points, never fewer than the pieces). A refused piece keeps those quota units (the engine did the work) but takes no prepaid credit or x402 payment; a request refused before walking (unknown or unfinished job, no such outing) is not billed. Premium for a truck plan. Requires the MapMap gateway.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_id": "<job_id>"
},
"name": "coverage_guidance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drive | No | `outing` (the default), `transfer` (the drive into that outing) or `transfer_to_start` (the plan's drive back to its start). | outing |
| job_id | Yes | The coverage job's id, as `submit_optimise_job` (`kind: "coverage"`) returned it. The job must be this key's own (or another key of the same account) and `succeeded`. | |
| chunk_id | No | The outing's `id` in the job's `result.chunks` (from 1). Required unless `drive` is `transfer_to_start`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | One leg per piece, in driving order, each with its maneuvers. | |
| drive | Yes | The drive guided: `outing`, `transfer` or `transfer_to_start`. | |
| job_id | Yes | The job it came from. | |
| pieces | Yes | Pieces walked, one leg each. | |
| summary | Yes | One-line summary of the drive. | |
| chunk_id | No | The outing's `id`, when one was named. | |
| distance_m | Yes | The whole drive's length, metres. | |
| duration_s | Yes | The whole drive's estimated driving time, seconds. | |
| geometry_polyline6 | Yes | The whole drive's geometry as the engine walked it, polyline6, legs joined at their shared points. |