calculate_distance
Calculate great circle distance between two coordinates for aviation. Returns distance in km and NM with initial and final bearings.
Instructions
Calculate great circle distance between two points.
Args: lat1: Latitude of first point in degrees lon1: Longitude of first point in degrees lat2: Latitude of second point in degrees lon2: Longitude of second point in degrees
Returns: JSON string with distance in km and NM, plus initial/final bearings.
Raises: No exceptions are raised directly; errors are returned as formatted strings.
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": "calculate_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat1 | Yes | ||
| lon1 | Yes | ||
| lat2 | Yes | ||
| lon2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |