Distance between two points
distanceRoad distance and travel time between two latitude/longitude points (or the straight-line distance with vehicle=direct). Costs $0.001; nothing is charged if no route is found. To start from addresses, geocode them first.
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": {
"origin": "<origin>",
"destination": "<destination>"
},
"name": "distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Distance units: miles or kilometers. | mi |
| origin | Yes | ||
| vehicle | No | Travel mode. direct gives the straight-line (great-circle) distance with no travel time. | auto |
| priority | No | Fastest or shortest road route. | fast |
| destination | Yes |