Skip to content
Documentation menu
docs / api / get-directions-matrix-v1-user-profile-coordinates
mapbox-compat

GET/directions-matrix/v1/{user}/{profile}/{coordinates}

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

Call it

bash
curl -fsS -X GET "https://api.mapmap.ai/directions-matrix/v1/{user}/{profile}/{coordinates}" \
  -H "Authorization: Bearer $MAPMAP_KEY"

Parameters

NameInRequiredDescription
userpathyesmapbox or mapmap
profilepathyesdriving, driving-traffic (served as driving), walking, cycling or truck (premium)
coordinatespathyeslon,lat pairs separated by ;
access_tokenquerynoYour MapMap key (snk_...)
sourcesqueryno;-separated coordinate indices, or all (default)
destinationsqueryno;-separated coordinate indices, or all (default)
annotationsquerynoduration (default), distance, or both comma-separated
depart_atquerynoLocal departure time, YYYY-MM-DDThh:mm

Responses

200{code, durations, distances?, sources, destinations}; waypoints carry the input coordinate and an empty name (the engine reports no snapped position). Metered as POST /matrix: one unit per started block of 25 elements
400{code, message} for a malformed or unsupported option, not billed
401Missing or invalid key
404ProfileNotFound
422More than 10,000 elements, or a span beyond the engine's matrix distance
429Quota or rate limit exceeded

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

Also under mapbox-compat

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