geo-distance
Great-circle and WGS-84 ellipsoidal distance between coordinates — Computes the haversine (IUGG mean-radius sphere) and Vincenty inverse (WGS-84 ellipsoid) distance in metres plus initial and final bearings for up to 100 coordinate pairs, and optionally checks a claimed distance within a tolerance. Vincenty is millimetre-accurate except for nearly antipodal pairs, where it does not converge: those pairs return vincentyMeters null, status unknown and the haversine
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": {
"pairs": "<pairs>"
},
"name": "geo-distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairs | Yes | Coordinate pairs. | |
| claimBasis | No | Which distance claimedMeters is compared against (default vincenty). | |
| toleranceMeters | No | Allowed difference for claimedMeters (default 1). |