compare_commutes
compare_commutesCompare commute times from 2–5 addresses to one shared destination, ranked by route duration using Google Maps data.
Instructions
Compares commute times from multiple candidate origins to a single shared destination using real-time Google Maps data.
Perfect for questions like:
• "Which of these 3 apartments has the best commute to my office?"
• "I'm considering moving to Brooklyn, Queens, or Jersey City — which is fastest to Midtown?"
• "Compare driving vs. transit isn't needed — just rank these addresses by commute time."
Accepts 2–5 origin addresses. Returns them ranked fastest → slowest, each with the best
available route (duration, distance, transit lines, traffic-aware driving time, etc.).
Failed lookups for individual origins are surfaced as errors in-line rather than aborting the whole comparison.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Transport mode for all comparisons. Default: transit. | |
| origins | Yes | List of 2–5 candidate origin addresses to compare, e.g. ['123 Main St, Brooklyn, NY', '456 Elm Ave, Queens, NY']. | |
| avoid_tolls | No | When true, instructs Google Maps to avoid toll roads where possible. Applies to driving and two_wheeler modes. | |
| destination | Yes | The shared destination address all origins will be compared against. | |
| departure_time | No | ISO 8601 departure datetime shared across all comparisons. Defaults to 1 minute from now. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| results | Yes | Origins ranked by fastest commute time (failed lookups appear last with rank: null) | |
| destination | Yes | The shared destination address |