compute_route
Get the travel time, distance, and route details between two locations for driving, walking, cycling, or transit with traffic and waypoints support.
Instructions
Get the driving, walking, cycling, or transit route between two places, with total time, distance, and any warnings. Each endpoint is written one of three ways: 'place_id:ChIJ...' from a place search (most precise), '40.7580,-73.9855' as a coordinate pair, or plain text for Google to resolve as an address. Traffic is included on DRIVE and TWO_WHEELER. Set include_steps only when you need turn-by-turn text; it makes the response much larger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | IMPERIAL | |
| origin | Yes | ||
| avoid_tolls | No | ||
| destination | Yes | ||
| travel_mode | No | DRIVE | |
| alternatives | No | ||
| avoid_ferries | No | ||
| include_steps | No | ||
| intermediates | No | ||
| avoid_highways | No | ||
| departure_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||