route_waypoints
Geocode a list of place names in route order and compute haversine distances between consecutive waypoints, returning leg distances, total distance, and bounding box.
Instructions
Geocode waypoints in order and compute route distances.
Resolves each waypoint to coordinates, then computes haversine
distances between consecutive points.
Args:
waypoints: JSON array of place names in route order
(e.g. '["Boulder, CO", "Denver, CO", "Aspen, CO"]')
output_mode: "json" (default) or "text"
Returns:
Resolved waypoints, leg distances, total distance, and bounding box
CRITICAL — LLM retry guidance:
If a waypoint fails to resolve, simplify its name and retry the
entire route. Remove landmarks, qualifiers, and descriptive words.
Use the single geocode tool to test problematic names first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| waypoints | Yes | ||
| output_mode | No | json |