teckel Navigation icon

teckel Navigation

Aviation weather, flight routing, geocoding and navigation tools via the teckel platform

Flight Distance Between Coords

AI-generated

Summary

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

Links

Discussion