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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"origin": "<origin>",
"destination": "<destination>"
},
"name": "get_directions"
}
}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 |