get_distance_matrix
Calculate travel distances and durations between multiple geographic coordinates using OpenStreetMap routing data for driving, walking, or cycling profiles.
Instructions
Calculate distance and duration matrix between multiple points
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": "get_distance_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coordinates | Yes | Array of [longitude, latitude] coordinates | |
| profile | No | Routing profile (default: driving) | |
| sources | No | Indices of source coordinates | |
| destinations | No | Indices of destination coordinates | |
| annotations | No | Additional annotations to include |