skypeek: great-circle distance between airports or points
airport_distanceCalculate the great-circle distance between two airport codes or coordinates, returning kilometers, nautical miles, statute miles, bearings, and midpoint for route reference.
Instructions
skypeek: Calculate the great-circle distance between two airports or points. For airport details use lookup_airport. Returns the great-circle distance between two airports (by code) or coordinates, in km, nautical miles and statute miles, with the initial and final true bearings and the midpoint. Input: from and to: each an airport code or {lat, lon}. Informational only: not for flight planning or navigation. A spherical (haversine) distance, within about 0.5 % of the WGS-84 geodesic. Airports: OurAirports (public domain); the data may contain errors and no endorsement is implied. An unknown code is a 422 unknown_airport (not charged). Typically under 0.1 s. Price: USD 0.001. Free: 5 skypeek calls per IP per UTC day. Docs: https://tanod.dev/learn/airport-lookup-flight-distance-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Airport code (ICAO, IATA or ident) or {lat, lon}. | |
| from | Yes | Airport code (ICAO, IATA or ident) or {lat, lon}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| method | No | ||
| source | No | ||
| midpoint | No | ||
| disclaimer | No | ||
| distance_km | No | ||
| distance_mi | No | ||
| distance_nm | No | ||
| final_bearing_deg | No | ||
| initial_bearing_deg | No |