calculate_route
The best order to visit up to 50 stops by road, as a round trip: the stops in visiting order with how long after the start each is reached, and the total drive time and distance. Each stop is {lat, lng} (from a record) or an address (at most 10 addresses a call), with an optional label, id and on-site minutes. Without home_base the trip starts and ends at the first stop. Traffic isn't included. Nothing is saved or assigned — to plan technicians' days, use plan_day_routes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stops | Yes | 1–50 stops | |
| options | No | ||
| home_base | No | Where the trip starts and ends (a depot, or the technician's location): an address or {lat, lng} |