Actions31
- Airport Search by Coordinates
- Airport Search by Name/Code
- Airport Search From Place
- Airports Within Range (Coords)
- Driving Distance Between Coords
- Driving Distance Between Places
- Features Within Range (Coords)
- Fixes Within Range (Coords)
- Flight Distance Between Coords
- Flight Distance Between Places
- Flight Route Calculations
- Geocode Search
- Get Current Time at Coords
- Get Current Time at Place
- Get Later Time at Coords
- Get Later Time at Place
- Get METARs (ICAO List)
- Get TAFs (ICAO List)
- Google Nearest Places Search
- Google Place Details
- Help
- METARs for Coords Within Range
- METARs for Place Within Range
- Nav Bearing From Coords
- Nav Bearing From Place
- Nav Bounding Box
- Navaids Within Range (Coords)
- Nearest METAR for Coords
- Nearest METAR for Place
- Obstacles Within Range (Coords)
- Sun Calculations
Flight Distance Between Coords
AI-generatedSummary
Calculates the great-circle or rhumbline distance and track between two coordinate points.
Inputs
- doMagnetic — Whether to use magnetic bearing (accounts for magnetic variation)
- doGreatCircle — Whether to compute great-circle arclength (true) or rhumbline (false)
- lat1 (required) — Decimal degrees, positive North
- lon1 (required) — Decimal degrees, positive East
- lat2 (required) — Decimal degrees, positive North
- lon2 (required) — Decimal degrees, positive East
Output shape
one item per input item containing distance and track data
The distance is returned in nautical miles. Track (bearing) is returned in degrees clockwise from North (0-360).
Examples
Example 1: Calculate the flight distance from London (51.5074, -0.1278) to New York (40.7128, -74.0060) using the default great-circle calculation.
Set lat1=51.5074, lon1=-0.1278, lat2=40.7128, lon2=-74.0060; leave doGreatCircle=True and doMagnetic=False
Example 2: Calculate the rhumbline distance and track between two points, converting the track to magnetic bearing.
Set lat1, lon1, lat2, lon2; set doGreatCircle=False, doMagnetic=True