Documentation menu
POST/v1/cameras/along
Access and price
| Auth | An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Needs a full key; a browser (maps) key is refused. |
|---|---|
| Price | 1 call per request. Class: standard, or premium for truck and ADR work. Published as unit_rules.default in /pricing.json. |
| Premium | When the body asks for truck routing: "costing": "truck", a top-level adr object or "hazmat": true |
What it does
Safety cameras along a route shape.
An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Price: 1 call per request.
Call it
curl -fsS -X POST "https://api.mapmap.ai/v1/cameras/along" \
-H "Authorization: Bearer $MAPMAP_KEY" \
-H "Content-Type: application/json" \
-d '{"shape":"string"}'Request body
application/json · CamerasAlongRequest
Route shape as polyline6 plus an optional corridor buffer (buffer_m, default 40 m, max 100 m)
| Field | Type | Required | Description |
|---|---|---|---|
| buffer_m | number | no | Corridor half-width in metres; default 40, clamped to at most 100. |
| shape | string | yes | The route shape as a polyline6 string. |
Example: A request assembled from this schema's own field examples, enums, defaults and types; not a recorded call
{
"shape": "string"
}Responses
| Field | Type | Required | Description |
|---|---|---|---|
| attribution | string[] | no | Attribution notices for the data actually returned, to display verbatim. Empty when no cameras were returned. Deduplicated and ordered by territory, then by the source's own order. |
| cameras | CameraAlong[] | yes | Cameras within the corridor, arc_m ascending. Always empty in
an omitted jurisdiction. |
| policy | CamerasPolicy | yes | The policy that was applied server-side. |
Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call
{
"cameras": [
{
"arc_m": 0,
"kind": "string",
"lat": 0,
"limit_confidence": "string",
"lon": 0
}
],
"policy": {
"country": "string",
"mode": "string"
}
}application/problem+json · Problem
unauthorized); the body carries signup, docs and a one-call hint for a free keyapplication/problem+json · Problem
X-PAYMENT). Not problem+jsonapplication/json · X402PaymentRequired
scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)application/problem+json · Problem
text/plain
rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)application/problem+json · Problem
application/problem+json · Problem
request-timeout)application/problem+json · Problem
Error bodies follow the shared problem model documented on API conventions.
Also under Routing
Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId post_cameras_along