getRouteDuration
Computes the shortest driving distance and duration between two coordinates using the public OSRM engine.
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": {
"start_lat": "<start_lat>",
"start_lng": "<start_lng>",
"end_lat": "<end_lat>",
"end_lng": "<end_lng>"
},
"name": "getRouteDuration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_lat | Yes | ||
| end_lng | Yes | ||
| start_lat | Yes | ||
| start_lng | Yes |