maps_distance_matrix
Calculate driving, walking, bicycling, or transit distances and travel times between multiple origins and destinations. Compare route options to plan logistics and estimate arrival times.
Instructions
Get travel distances and durations between multiple origins and destinations
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": "maps_distance_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Travel mode (default: driving) | |
| origins | Yes | List of origins: addresses, place names, or 'lat,lng' | |
| destinations | Yes | List of destinations: addresses, place names, or 'lat,lng' |