Spherical Earth and Great-Circle Distance

Model the Earth as a sphere with mean radius R ≈ 6371 km, represent surface points by latitude/longitude or unit position vectors, and compute great-circle (shortest-path) distances between points using the spherical law of cosines.

Step 1 of 157%

Tutorial

The Spherical Earth Model

For routing purposes, Earth is treated as a sphere. Although it bulges slightly at the equator, using the mean radius

R6371 kmR \approx 6371 \text{ km}

is accurate to well under 1% — more than good enough for flight planning.

A surface point is specified by two angles:

  • Latitude φ\varphi: angle north (+) or south (−) of the equator, with φ[90°,90°]\varphi \in [-90°,\, 90°].
  • Longitude λ\lambda: angle east (+) or west (−) of the prime meridian, with λ[180°,180°]\lambda \in [-180°,\, 180°].

A great circle is the intersection of the sphere with a plane through its center. Every great circle has the same radius RR as the sphere. The shortest path on the surface between two points lies along the unique great circle through them, so we call its arc length the great-circle distance.

If two points subtend a central angle Δσ\Delta\sigma at Earth's center, then the great-circle distance is

d=RΔσ,d = R \cdot \Delta\sigma,

with Δσ\Delta\sigma expressed in radians. To convert from degrees to radians, multiply by π180:\dfrac{\pi}{180}{:}

Δσrad=Δσdegπ180.\Delta\sigma_{\text{rad}} = \Delta\sigma_{\text{deg}} \cdot \dfrac{\pi}{180}.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle