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

GET/optimized-trips/v1/{user}/{profile}/{coordinates}

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

What it does

A one-vehicle optimisation of 2 to 12 stops, then the route of the ordered trip. Billed as the optimise units plus the route units: 11 units for a trip of up to 12 coordinates (10 for the solve, 1 for the route); when the order is forced no solve runs and only the route is billed.

Call it

bash
curl -fsS -X GET "https://api.mapmap.ai/optimized-trips/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)
coordinatespathyes2 to 12 lon,lat pairs separated by ;; the first is the start
access_tokenquerynoYour MapMap key (snk_...)
roundtripquerynoReturn to the first coordinate (default true)
sourcequerynoany (default) or first
destinationquerynoany (default) or last
stepsquerynoTurn-by-turn steps on the trip
geometriesquerynopolyline (default), polyline6 or geojson
overviewquerynosimplified (default), full or false
annotationsquerynoAs on Directions: distance, duration, speed, maxspeed

Responses

200{code, waypoints: [{waypoint_index, trips_index, location, name}], trips: [<route>]}. NotImplemented (an unsupported roundtrip/source/destination combination, not billed), NoTrips and NoRoute also answer 200 with that code
400{code, message} for a malformed or unsupported option, not billed
401Missing or invalid key
404ProfileNotFound
429Quota or rate limit exceeded
503Optimisation is not enabled on this deployment

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_optimized_trips