route_waypoints
Calculate route distances by geocoding waypoints in order and computing haversine distances between consecutive locations.
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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| waypoints | Yes | ||
| output_mode | No | json |