HERE waypoint sequence (multi-stop order optimisation)
here_waypoint_sequenceOptimize the visiting order for a multi-stop HGV delivery run by providing a depot, optional end, and stops; returns the best sequence with leg distances, times, and totals.
Instructions
Find the optimal visiting order for a multi-drop run using HERE Waypoints Sequence v8 (findsequence2). Provide a start (depot), an optional end, and the stops to visit. The response lists the optimised order with per-leg distance/time and totals — ideal for planning a delivery round for an HGV. improveFor="time" (default) or "distance". transportMode="truck" with the "truck" profile applies HGV restrictions for the whole sequence (metres/kg converted to HERE cm/kg with units). departureTime is RFC 3339 with offset; it defaults to "now" because live traffic is factored into the sequence. avoidFeatures uses HERE's mode route-features: tollroad, motorway, boatFerry, railFerry, tunnel, dirtRoad (strict avoidance).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"start": "<start>",
"waypoints": "<waypoints>"
},
"name": "here_waypoint_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Optional end location (e.g. return to depot). | |
| start | Yes | Depot/start location: "lat,lng" or address (auto-geocoded). | |
| truck | No | HGV profile. Only used when transportMode is "truck". | |
| waypoints | Yes | Stops to visit, 1-50, in no particular order — HERE computes the optimal order. | |
| improveFor | No | Optimise for total travel time (default) or distance. | time |
| avoidFeatures | No | Road features to strictly avoid for the whole sequence. | |
| departureTime | No | Departure time (RFC 3339 with offset) or "now". Defaults to "now" so traffic is considered. | |
| transportMode | No | Travel mode (default car). Use "truck" for HGV sequence. | car |
| excludeCountries | No | ISO 3166-1 alpha-3 countries to exclude from the sequence. |