What airport codes should I use?
Use ICAO codes (4 letters, e.g., KJFK, EGLL). ICAO codes are the international standard for aviation. Common US airports start with "K" (KJFK, KLAX, KORD).
Can I use IATA codes instead?
This API requires ICAO codes. IATA codes (3 letters like JFK, LHR) are not supported directly. Use our Airport Lookup API to convert between codes.
How is the distance calculated?
We use the great-circle distance formula (Haversine), which calculates the shortest distance over the Earth's surface. This is the standard for aviation.
Does it include all airports?
Our database includes major international airports, regional airports, and most public-use airfields worldwide.
Is this the actual flight distance?
This is the great-circle (direct) distance. Actual flight paths may be longer due to air traffic routes, weather, and restricted airspace.
Can I calculate flight time from this?
You can estimate flight time by dividing distance by average cruise speed (roughly 500-550 mph for jets), but actual times vary based on aircraft, winds, and routes.