maps_distance_matrix
Calculate travel distance and time for multiple origins and destinations. Use to optimize routes and compare travel modes.
Instructions
Calculate travel distance and time for 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 |
|---|---|---|---|
| origins | Yes | Array of origin addresses or coordinates | |
| destinations | Yes | Array of destination addresses or coordinates | |
| mode | No | Travel mode (driving, walking, bicycling, transit) |