distance_matrix
Calculate distances and travel times between multiple points. Specify an origin and destinations to receive a matrix of distances and durations.
Instructions
Calculate distances and travel times between multiple points. First coordinate is the origin; all others are destinations. Returns a matrix of distances and durations.
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": {
"coordinates": "<coordinates>"
},
"name": "distance_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Travel mode (default: driving) | |
| coordinates | Yes | Semicolon-separated lat,lng points. e.g. '28.55,77.13;28.48,77.05;28.63,77.21' (min 2 points) |