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.
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
mapbox or mapmap
driving, driving-traffic (served as driving), walking, cycling or truck (premium)
2 to 12 lon,lat pairs separated by ;; the first is the start
Query parameters
Your MapMap key (snk_...)
Return to the first coordinate (default true)
any (default) or first
any (default) or last
Turn-by-turn steps on the trip
polyline (default), polyline6 or geojson
simplified (default), full or false
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
Changes
No recorded changes to this operation across all 1 revision of this API.