routes_matrix
Computes distance and travel time matrices between multiple origins and destinations for route planning and logistics optimization.
Instructions
Compute distance matrix 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": "routes_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Unit system for distances | |
| region | No | Region code for biasing results (ISO 3166-1 alpha-2, e.g., "US", "GB", "DE") | |
| origins | Yes | Array of starting locations for distance calculations. Each location should be either coordinates like {"lat": 37.7749, "lng": -122.4194} or an address like {"address": "San Francisco, CA"} | |
| language | No | Language code for results (ISO 639-1, e.g., "en", "es", "fr") | |
| travel_mode | No | Transportation mode for distance calculations | |
| destinations | Yes | Array of destination locations for distance calculations. Each location should be either coordinates like {"lat": 40.7128, "lng": -74.0060} or an address like {"address": "New York, NY"} | |
| routing_preference | No | Routing algorithm preference |