Solve the travelling salesman problem: find the optimal order to visit locations. Returns the optimised route with terrain analytics and savings (distance and time) compared to the original order.
Your Footstep API key
Locations (min 4 for TSP)
4 - 50 elementsauto, bicycle, pedestrian Mode-specific tuning. Include only the key matching your costing mode.
kilometers, miles 10 <= x <= 200Response format. footstep = optimised for app developers (encoded polyline, flat structure). geojson = standard GeoJSON FeatureCollection (decoded coordinates, immediately usable in Leaflet/Mapbox GL/deck.gl).
footstep, geojson