routing

Traffic incidents and closures along a route shape (see module docs).

post/v1/incidents/along

Request

  • Base URL: https://api.mapmap.ai
  • URL: https://api.mapmap.ai/v1/incidents/along
  • Auth: one of:
    • HTTP bearer
    • API key in query parameter api_key

Request body

buffer_mnumber double nullable

Corridor half-width in metres; default 60, clamped to at most 500.

shapestring required

The route shape as a polyline6 string.

Response

Incidents along the route (arc-ordered) and every configured source's coverage metadata. Rows from drivers' traffic reports (source_kind: "driver", source: "mapmap-drivers") appear only once two distinct drivers report the same thing nearby in the same direction, only for a route travelling that direction, always with severity: "other" and never with a delay; they add driver_kind, reports, reported_at and expires_at

attributionstring[]

Attribution notices for the sources actually configured, to display verbatim.

Changes

No recorded changes to this operation across all 1 revision of this API.