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

GET/directions/v5/{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/v5/{user}/{profile}/{coordinates}" \
  -H "Authorization: Bearer $MAPMAP_KEY"

Parameters

NameInRequiredDescription
userpathyesmapbox or mapmap
profilepathyesdriving, driving-traffic (served as driving: traffic-aware times cover the England strategic road network only), walking, cycling or truck (MapMap extension, premium)
coordinatespathyeslon,lat pairs separated by ;
access_tokenquerynoYour MapMap key (snk_...), accepted here as Mapbox clients send it; api_key and a bearer header work too
alternativesquerynoReturn up to three alternative routes
annotationsquerynoComma-separated: distance, duration, speed (each manoeuvre's engine length and time spread over its segments by length) and maxspeed. congestion, congestion_numeric, closure and state_of_charge are refused with a 400 naming the supported set
geometriesquerynopolyline (default), polyline6 or geojson
overviewquerynosimplified (default), full or false
stepsquerynoTurn-by-turn steps
languagequerynoBCP 47 instruction language
voice_instructionsquerynoMapbox-shaped voiceInstructions on each step (metric units)
banner_instructionsquerynoMapbox-shaped bannerInstructions on each step
excludequerynotoll, motorway, ferry, tunnel: hard exclusions, so an unavoidable one answers NoRoute where Mapbox would return a violating route
depart_atquerynoLocal departure time, YYYY-MM-DDThh:mm
approachesquerynocurb or unrestricted per coordinate, ; separated

Responses

200Mapbox Directions response: code, routes (each with weight_name: "duration"), waypoints and uuid (the request id). NoRoute and NoSegment also answer 200 with that code and empty routes, as Mapbox documents
400{code, message}: InvalidQuery or InvalidValue, including any Mapbox option MapMap does not honour (the message names the supported set). Not billed
401Missing or invalid key
403A browser (maps) key: routing needs a full key
404ProfileNotFound
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_directions