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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat1 | Yes | ||
| lon1 | Yes | ||
| lat2 | Yes | ||
| lon2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |