maps_distance_matrix
Calculate travel time and distance between multiple origins and destinations to identify the closest locations and compare routes.
Instructions
Travel time and distance from several origins to several destinations (e.g. which store is closest to each customer).
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 | DRIVE | |
| origins | Yes | ||
| destinations | Yes |