Great-circle distance

From Wikipedia, the free encyclopedia

The great-circle distance is the shortest distance between any two points on the surface of a sphere measured along a path on the surface of the sphere (as opposed to going through the sphere's interior). Because spherical geometry is rather different from ordinary Euclidean geometry, the equations for distance take on a different form. The distance between two points in Euclidean space is the length of a straight line from one point to the other. On the sphere, however, there are no straight lines. In non-Euclidean geometry, straight lines are replaced with geodesics. Geodesics on the sphere are the great circles (circles on the sphere whose centers are coincident with the center of the sphere).

Between any two points on a sphere which are not directly opposite each other, there is a unique great circle. The two points separate the great circle into two arcs. The length of the shorter arc is the great-circle distance between the points. Between two points which are directly opposite each other, called antipodal points, there are infinitely many great circles, but all great circle arcs between antipodal points have the same length, i.e. half the circumference of the circle, or πr, where r is the radius of the sphere.

Because the Earth is approximately spherical (see spherical Earth), the equations for great-circle distance are important for finding the shortest distance between points on the surface of the Earth, and so have important applications in navigation.

Contents

Let \phi_1,\lambda_1;\ \phi_2,\lambda_2\,\! be the latitude and longitude of two points, respectively, \Delta\lambda\,\! the longitude difference and \Delta\sigma\,\! the angular difference/distance, or central angle, which can be constituted from the spherical law of cosines:

\Delta\sigma=\arccos\left\{\sin\phi_1\sin\phi_2+\cos\phi_1\cos\phi_2\cos\Delta\lambda\right\}

This arccosine form can have large rounding errors for the common case where the distance is small, however, so it is not normally used. Instead, a simpler equation known historically as the haversine formula was preferred, which is much more accurate for small distances:

\Delta\sigma =2\arcsin\left\{\sqrt{\sin^2\left(\frac{\phi_2-\phi_1}{2}\right)+\cos{\phi_1}\cos{\phi_2}\sin^2\left(\frac{\Delta\lambda}{2}\right)}\right\}.\!

(Historically, the use of this formula was simplified by the availability of tables for the haversine function: hav(θ) = sin2(θ/2).) Although this formula is accurate for most distances, it too suffers from rounding errors for the special (and somewhat unusual) case of antipodal points (on opposite ends of the sphere). A more complicated formula that is accurate for all distances is:[citation needed]

\Delta\sigma=\arctan\left\{\frac{\sqrt{\left[\cos\phi_2\sin\Delta\lambda\right]^2+\left[\cos\phi_1\sin\phi_2-\sin\phi_1\cos\phi_2\cos\Delta\lambda\right]^2}}{\sin\phi_1\sin\phi_2+\cos\phi_1\cos\phi_2\cos\Delta\lambda}\right\}

(On a computer, one should use atan2 rather than the ordinary arctangent function, in order to correctly handle the case where the denominator is zero.)

If r is the great-circle radius of the sphere, then the great-circle distance is r\,\Delta\sigma\,\!.

Note: above, accuracy refers to rounding errors only; all formulas themselves are exact (for a sphere).

See also: Earth radius

The shape of the Earth more closely resembles a flattened spheroid with extreme values for the radius of curvature, or arcradius, of 6335.437 km at the equator (vertically) and 6399.592 km at the poles, and having an average great-circle radius of 6372.795 km (3438.461 nautical miles).

Using a sphere with a radius of 6372.795 km thus results in an error of up to about 0.5%.

In order to use this formula for anything practical you will need two sets of coordinates. For example, the latitude and longitude of two airports:

  • Nashville International Airport (BNA) in Nashville, TN, USA: N 36°7.2', W 86°40.2'
  • Los Angeles International Airport (LAX) in Los Angeles, CA, USA: N 33°56.4', W 118°24.0'

First, convert these coordinates to whole degrees (Sign × (Deg + (Min + Sec / 60) / 60)) and radians (× π / 180) before you can use them effectively in a formula. After conversion, the coordinates become:

  • BNA:\phi_1= 36.12^\circ\approx 0.6304\mbox{ rad},\ \ \lambda_1=-86.67^\circ\approx -1.5127\mbox{ rad};\,\!
  • LAX:\phi_2= 33.94^\circ\approx 0.5924\mbox{ rad},\ \ \lambda_2=-118.40^\circ\approx -2.0665\mbox{ rad};\,\!

Using these values in the angular distance equation:

r\,\Delta\sigma\approx 6372.795\times0.45306 \approx 2887.259\mbox{ km}.\,\!

Thus the distance between LAX and BNA is about 2887 km or 1794 miles (× 0.62137) or 1558 nautical miles (× 0.539553).

In the spherical coordinates used by mathematicians and physicists, usually when considering other spheres than the Earth's surface, the great-circle distance is found as follows. If \varphi\,\! is the azimuthal angle and \theta\,\! the colatitude, then the spherical distance is given by

r\,\Delta\sigma =2r\arcsin\left\{\sqrt{\sin^2\left(\frac{\theta_2-\theta_1}{2}\right) +\sin{\theta_1}\sin{\theta_2}\sin^2\left(\frac{\Delta\varphi}{2}\right)}\right\}.\!
=r\arctan\left\{\frac{\sqrt{\left[\sin\theta_2\sin\Delta\varphi\right]^2+\left[\sin\theta_1\cos\theta_2-\cos\theta_1\sin\theta_2\cos\Delta\varphi\right]^2}}{\cos\theta_1\cos\theta_2+\sin\theta_1\sin\theta_2\cos\Delta\varphi}\right\};\,\!

Note that if \varphi_1=\varphi_2\,\! then \Delta\sigma=|\theta_2-\theta_1|\,\! and the distance formula reduces to

r\,\Delta\sigma=r|\theta_2-\theta_1|.\,\!

The notation above is that used in the physical sciences. Pure mathematicians, by contrast, conventionally interchange the roles of the letters \varphi\,\! and \theta\,\!.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.