haversine_distance
Calculate distance between two coordinates using Haversine formula.
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": "haversine_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat1 | Yes | Latitude of point 1 | |
| lat2 | Yes | Latitude of point 2 | |
| lon1 | Yes | Longitude of point 1 | |
| lon2 | Yes | Longitude of point 2 | |
| unit | No | Unit: km or mi | km |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| point1 | Yes | ||
| point2 | Yes | ||
| distance | Yes |