Distance Calculator
DistanceCalculatorDistance Calculator: Distance Calculator computes the distance between two coordinate pairs in miles and kilometers. Supply two latitude and longitude points to receive distances and resolved city and state names for both locations. (Cost: 2 credits)
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": {
"lat1": "<lat1>",
"lon1": "<lon1>",
"lat2": "<lat2>",
"lon2": "<lon2>"
},
"name": "DistanceCalculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat1 | Yes | The latitude of the first location | |
| lat2 | Yes | The latitude of the second location | |
| lon1 | Yes | The longitude of the first location | |
| lon2 | Yes | The longitude of the second location |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |