geo_distance
Calculate the great-circle distance between any two geographic coordinates. Returns results in kilometers, miles, and nautical miles for easy use.
Instructions
Calculate the great-circle distance between two geographic points using the Haversine formula. Returns distance in kilometers, miles, and nautical miles.
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>",
"lng1": "<lng1>",
"lat2": "<lat2>",
"lng2": "<lng2>"
},
"name": "geo_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat1 | Yes | Latitude of the first point (-90 to 90) | |
| lat2 | Yes | Latitude of the second point (-90 to 90) | |
| lng1 | Yes | Longitude of the first point (-180 to 180) | |
| lng2 | Yes | Longitude of the second point (-180 to 180) |