Skip to content

50,000 free calls a month, card-free. Get an API key →

Documentation menu
docs / api / post-v1-clearance-along
clearance

POST/v1/clearance/along

API key required, sent as Authorization: Bearer snk_… or ?api_key=snk_….

Call it

bash
curl -fsS -X POST "https://api.mapmap.ai/v1/clearance/along" \
  -H "Authorization: Bearer $MAPMAP_KEY" \
  -H "Content-Type: application/json" \
  -d @request.json

Request body

application/json · ClearanceAlongRequest

Route shape as polyline6 plus the vehicle's height in metres (optional width, operating margin and dataset narrowing)

FieldTypeRequiredDescription
datasetsstring[]noNarrow the search to these datasets. The default is every dataset this key may see whose survey covers the corridor. A name this key may not see, or that does not exist, is dropped: the answer is the same "not surveyed" either way.
geometry_polyline6stringyesThe corridor as a Google encoded polyline, six-digit precision — typically geometry_polyline6 from a prior /route response. Capped at 10,000 vertices.
margin_mnumbernoThe caller's operating margin in metres, added to the height. Defaults to zero, and is echoed back: no compliance policy is baked in here, both figures are reported.
vehicle_height_mnumberyesVehicle height in metres. Required: there is no default vehicle.
vehicle_width_mnumbernoVehicle width in metres. The width axis is assessed only when this is given; without it the report answers for height and says so.

Responses

200The clearance report: verdict per axis, limiting point with its bound, coverage, datasets read
FieldTypeRequiredDescription
advisoriesAdvisory[]yesNotes on stretches of the route.
basisstringyesAlways surveyed_geometry_not_signage.
clearance_enforcementClearanceEnforcementyesThe honesty block.
datasetsDatasetRef[]yesThe datasets drawn on.
explanationstringyesOne-line honest summary. British English, no claim words, no em dashes; see explain.rs, which enforces that rather than asking.
heightRouteVerdictOutyesThe height axis.
routeRouteRefyesThe route the question was asked about.
vehicleVehicleQueryyesThe vehicle, echoed back including its margin.
widthWidthOutyesThe width axis.
400Invalid request
401Missing or invalid API key
429Quota or rate limit exceeded
501No clearance artefacts are configured on this deployment

Error bodies follow the shared problem model documented on API conventions.

Generated from https://api.mapmap.ai/openapi.json on 2026-09-17 · operationId post_clearance_along