optimize_route
Calculate optimal travel routes through multiple locations using the Traveling Salesman Problem algorithm. Supports driving, walking, and cycling profiles with turn-by-turn instructions.
Instructions
Solve Traveling Salesman Problem to find optimal route through all points
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coordinates | Yes | Array of [longitude, latitude] coordinates to visit | |
| profile | No | Routing profile (default: driving) | |
| roundtrip | No | Return to starting point (default: false) | |
| source | No | Source coordinate constraint | |
| destination | No | Destination coordinate constraint | |
| steps | No | Include turn-by-turn instructions (default: true) |