Travel times between places
travel_timesCompute road distance and travel time matrices between Indian places by car or on foot using coordinates, railway stations, airports, or place names. Returns road km and traffic-aware minutes.
Instructions
Computes road distance and travel time from each origin to each destination in India (a matrix), by car or on foot. Each place is lat+lng, a railway station code, an airport IATA code or a place name. Returns straight-line km, road km, free-flow minutes and traffic-adjusted minutes per pair, with a warning when a point is far from any road. Does not cover public transport or flights.
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": {
"origins": "<origins>",
"destinations": "<destinations>"
},
"name": "travel_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | drive (car/taxi, with traffic allowance) or walk. | drive |
| origins | Yes | Starting places. | |
| destinations | Yes | Destination places. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | One leg per origin–destination pair, origin by origin. | |
| notes | Yes | How times are computed, and attribution. |