Get Routes
get_routesCompare available driving, transit, walking, and bicycling route summaries between two places using Google Maps. Returns duration and distance estimates for supported modes, plus Uber, Lyft, Waymo, and Google Maps handoff buttons for the destination. Set origin to 'home' for the user's saved home address. Ground time excludes airport check-in and security. Fares, detailed legs, flights, and ferries are unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | ISO 8601 date-time with an explicit UTC offset. Required for leave_by or arrive_by; omit for leave_now. | |
| modes | No | Modes to compare. Defaults to all four. | |
| origin | Yes | Starting place or address (1 to 300 characters), or 'home' for the user's private saved home address. | |
| time_mode | No | When to travel. Default leave_now. | |
| destination | Yes | Ending place or address (1 to 300 characters). |