Distance
distanceGreat-circle (haversine) distance between two lat/lon points. Returns the distance in km, miles, nautical miles, meters & feet, plus the initial compass bearing from point 1 to point 2.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lat1": 40.7128,
"lat2": 51.5074,
"lon1": -74.006,
"lon2": -0.1278
},
"name": "distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat1 | Yes | Latitude of point 1 (decimal degrees). | |
| lat2 | Yes | Latitude of point 2. | |
| lon1 | Yes | Longitude of point 1. | |
| lon2 | Yes | Longitude of point 2. |