Plan a delivery route
plan_delivery_routePuts a list of US delivery addresses in the best driving order for one driver, or splits them across up to 5 drivers, and shows the routes on a map. Suited to anyone with several stops to deliver to or visit who wants the fastest order or a fair split between drivers. Takes up to 25 street addresses, an optional start address and an optional return to the start. Returns each driver's stops in order with miles and minutes, and names any address it could not place. US addresses only; it plans the order of stops and does not give turn by turn directions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | With several drivers: fewest_miles keeps total driving lowest, even_load spreads the day's work more evenly between drivers. | |
| start | No | Where the driver or drivers start, such as the warehouse or shop. If left out, the first address is the start. | |
| stops | Yes | The delivery addresses, as the person wrote them. Street, city and state, with ZIP if known. | |
| drivers | No | How many drivers to split the stops between. Defaults to 1. | |
| return_to_start | No | True if the drivers come back to the start at the end. |