Travel times and distances between many US points
distance_matrixTravel time (seconds) and road distance (metres) from each source to each target in the United States: up to 50 sources and 50 targets, 2,500 pairs at most. Omit targets for every source to every other. Use it to pick the nearest store or driver, or to feed a route optimiser. null means no route. Free-flow times, no live traffic. Counts 1 address lookup per pair.
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": {
"sources": "<sources>"
},
"name": "distance_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| avoid | No | Kinds of road to avoid where possible | |
| profile | No | How to travel: car, truck (keeps to roads trucks may use), bike or foot | car |
| sources | Yes | Origins, each [lat, lon] | |
| targets | No | Destinations, each [lat, lon] (default: the sources) |