get_directions
Get route directions between any two locations with real-time traffic data, distance, and duration. Supports driving, walking, bicycling, and transit modes.
Instructions
Get route directions between origin and destination with real-time traffic data. Returns routes with distance, duration, steps, and traffic information.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | Starting location (address or 'lat,lng') | |
| destination | Yes | Ending location (address or 'lat,lng') | |
| mode | No | Travel mode | driving |
| departure_time | No | ISO 8601 timestamp for departure (for traffic estimation) | |
| alternatives | No | Return alternative routes | |
| avoid | No | Features to avoid | |
| traffic_model | No | Traffic prediction model | best_guess |