Skip to content

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

Documentation menu
docs / api / post-v1-cameras-along
routing

POST/v1/cameras/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/cameras/along" \
  -H "Authorization: Bearer $MAPMAP_KEY" \
  -H "Content-Type: application/json" \
  -d @request.json

Request body

application/json · CamerasAlongRequest

Route shape as polyline6 plus an optional corridor buffer (buffer_m, default 40 m, max 100 m)

FieldTypeRequiredDescription
buffer_mnumbernoCorridor half-width in metres; default 40, clamped to at most 100.
shapestringyesThe route shape as a polyline6 string.

Responses

200Cameras along the route (arc-ordered) and the applied jurisdiction policy
FieldTypeRequiredDescription
attributionstring[]noAttribution 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.
camerasCameraAlong[]yesCameras within the corridor, arc_m ascending. Always empty in an omitted jurisdiction.
policyCamerasPolicyyesThe policy that was applied server-side.
400Invalid request
401Missing or invalid API key
429Quota or rate limit exceeded
501Camera sidecars are not enabled (SN_CAMERAS_DIR unset)

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

Also under routing

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