mapbox-compat

Mapbox-compatible Optimization v1 (see module docs). Billed as the optimise units plus one route unit.

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.

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

Request

  • Base URL: https://api.mapmap.ai
  • URL: https://api.mapmap.ai/optimized-trips/v1/{user}/{profile}/{coordinates}
  • Auth: one of:
    • HTTP bearer
    • API key in query parameter api_key

Path parameters

userstring required

mapbox or mapmap

profilestring required

driving, driving-traffic (served as driving), walking, cycling or truck (premium)

coordinatesstring required

2 to 12 lon,lat pairs separated by ;; the first is the start

Query parameters

access_tokenstring

Your MapMap key (snk_...)

roundtripboolean

Return to the first coordinate (default true)

sourcestring

any (default) or first

destinationstring

any (default) or last

stepsboolean

Turn-by-turn steps on the trip

geometriesstring

polyline (default), polyline6 or geojson

overviewstring

simplified (default), full or false

annotationsstring

As on Directions: distance, duration, speed, maxspeed

Response

{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

object required

Changes

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