Preply — Study more efficiently by working with a personal tutor. Get 50% off.Affiliate

Wikipedia

Geographical distance

Geographical distance

Geographical distance or geodetic distance is the distance measured along the surface of the Earth, or the shortest arc length. The formulae in this article calculate distances between points which are defined by geographical coordinates in terms of latitude and longitude. This distance is an element in solving the second (inverse) geodetic problem.

Introduction Calculating the distance between geographical coordinates is based on some level of abstraction; it does not provide an exact distance, which is unattainable if one attempted to account for every irregularity in the surface of the Earth. Common abstractions for the surface between two geographic points are:

Flat surface; Spherical surface; Ellipsoidal surface. All abstractions above ignore changes in elevation. Calculation of distances which account for changes in elevation relative to the idealized surface are not discussed in this article.

Classification of Formulae based on Approximation short-range approximations: Flat surface, Gauss-mid-latitude; max | Δ D error | ∝ D 3 {\displaystyle \max |\Delta D_{\text{error}}|\propto D^{3}}

Bowring's method (1981) for short lines improved by Karney using reduces latitude and mid-latitude; max | Δ D error | ∝ D 4 {\displaystyle \max |\Delta D_{\text{error}}|\propto D^{4}}

long-range approximations; max | Δ D error | ∝ D {\displaystyle \max |\Delta D_{\text{error}}|\propto D} on the closed hemisphere

f 0 {\displaystyle f^{0}} -order approximation method: Spherical earth higher-order approximations based on Ellipsoid: f 1 {\displaystyle f^{1}} : Andoyer(1932); Andoyer-Lambert(1942), f 2 {\displaystyle f^{2}} : Andoyer-Lambert-Thomas(1970), f 3 {\displaystyle f^{3}} : Vincenty(1975), f 6 {\displaystyle f^{6}} : Karney(2011) The theoretical estimations of error are added in above and f {\displaystyle f} is the flattening of the Earth.

Nomenclature Arc distance, D , {\displaystyle D,\,\!} is the minimum distance along the surface of sphere/ellipsoid calculated between two points, P 1 {\displaystyle P_{1}\,\!} and P 2 {\displaystyle P_{2}\,\!} . Whereas, the tunnel distance, or chord length, D t {\displaystyle D_{\textrm {t}}} , is measured along Cartesian straight line. The geographical coordinates of the two points, as (latitude, longitude) pairs, are ( ϕ 1 , λ 1 ) {\displaystyle (\phi _{1},\lambda _{1})\,\!} and ( ϕ 2 , λ 2 ) , {\displaystyle (\phi _{2},\lambda _{2}),\,\!} respectively. Which of the two points is designated as P 1 {\displaystyle P_{1}\,\!} is not important for the calculation of distance. Latitude ϕ {\displaystyle \phi \,\!} and longitude λ {\displaystyle \lambda \,\!} coordinates on maps are usually expressed in degrees. In the given forms of the formulae below, one or more values must be expressed in the specified units to obtain the correct result. Where geographic coordinates are used as the argument of a trigonometric function, the values may be expressed in any angular units compatible with the method used to determine the value of the trigonometric function. Many electronic calculators allow calculations of trigonometric functions in either degrees or radians. The calculator mode must be compatible with the units used for geometric coordinates. Differences in latitude and longitude are labeled and calculated as follows:

Δ ϕ = ϕ 2 − ϕ 1 ; Δ λ = λ 2 − λ 1 . {\displaystyle {\begin{aligned}\Delta \phi &=\phi _{2}-\phi _{1};\\\Delta \lambda &=\lambda _{2}-\lambda _{1}.\end{aligned}}\,\!}

It is not important whether the result is positive or negative when used in the formulae below. "Mid-latitude" is labeled and calculated as follows:

ϕ m = ϕ 1 + ϕ 2 2 . {\displaystyle \phi _{\mathrm {m} }={\frac {\phi _{1}+\phi _{2}}{2}}.\,\!}

Unless specified otherwise, the radius of the Earth for the calculations below is:

R {\displaystyle R\,\!} = 6,371.009 kilometers = 3,958.761 statute miles = 3,440.069 nautical miles.

D {\displaystyle D_{\,}\!} = Distance between the two points, as measured along the surface of the Earth and in the same units as the value used for radius unless specified otherwise.

Singularities and discontinuity of latitude/longitude The approximation of sinusoidal functions of Δ λ {\displaystyle \Delta \lambda } , appearing in some flat-surface formulae below, may induce singularity and discontinuity. It may also degrade the accuracy in the case of higher latitude. Longitude has singularities at the Poles (longitude is undefined) and a discontinuity at the ±180° meridian. Also, planar projections of the circles of constant latitude are highly curved near the Poles. Hence, the above equations for delta latitude/longitude ( Δ ϕ {\displaystyle \Delta \phi \!} , Δ λ {\displaystyle \Delta \lambda \!} ) and mid-latitude ( ϕ m {\displaystyle \phi _{\mathrm {m} }\!} ) may not give the expected answer for positions near the Poles or the ±180° meridian. Consider e.g. the value of Δ λ {\displaystyle \Delta \lambda \!} ("east displacement") when λ 1 {\displaystyle \lambda _{1}\!} and λ 2 {\displaystyle \lambda _{2}\!} are on either side of the ±180° meridian, or the value of ϕ m {\displaystyle \phi _{\mathrm {m} }\!} ("mid-latitude") for the two positions ( ϕ 1 {\displaystyle \phi _{1}\!} =89°, λ 1 {\displaystyle \lambda _{1}\!} =45°) and ( ϕ 2 {\displaystyle \phi _{2}\!} =89°, λ 2 {\displaystyle \lambda _{2}\!} =−135°). If a calculation based on latitude/longitude should be valid for all Earth positions, it should be verified that the discontinuity and the Poles are handled correctly. Another solution is to use n-vector instead of latitude/longitude, since this representation does not have discontinuities or singularities.

Flat-surface approximation formulae for very short distance A planar approximation for the surface of the Earth may be useful over very small distances. It approximates the arc length, D {\displaystyle D} , to the tunnel distance, D t {\displaystyle D_{\textrm {t}}} , or omits the conversion between arc and chord lengths shown below. The shortest distance between two points in plane is a Cartesian straight line. The Pythagorean theorem is used to calculate the distance between points in a plane. Even over short distances, the accuracy of geographic distance calculations which assume a flat Earth depend on the method by which the latitude and longitude coordinates have been projected onto the plane. The projection of latitude and longitude coordinates onto a plane is the realm of cartography. The formulae presented in this section provide varying degrees of accuracy.

Spherical Earth approximation formulae The tunnel distance, D t {\displaystyle D_{\textrm {t}}} , is calculated on Spherical Earth. This formula takes into account the variation in distance between meridians with latitude, assuming D ≈ D t {\displaystyle D\approx D_{\textrm {t}}} :

D t = 2 R ( sin ⁡ Δ ϕ 2 cos ⁡ Δ λ 2 ) 2 + ( cos ⁡ ϕ m sin ⁡ Δ λ 2 ) 2 ≈ R ( Δ ϕ cos ⁡ Δ λ 2 ) 2 + ( 2 cos ⁡ ϕ m sin ⁡ Δ λ 2 ) 2 . {\displaystyle {\begin{aligned}D_{\textrm {t}}&=2R{\sqrt {\left(\sin {\frac {\Delta \phi }{2}}\,\cos {\frac {\Delta \lambda }{2}}\right)^{2}+\left(\cos \phi _{\textrm {m}}\sin {\frac {\Delta \lambda }{2}}\right)^{2}}}\\&\approx R{\sqrt {\left(\Delta \phi \,\cos {\frac {\Delta \lambda }{2}}\right)^{2}+\left(2\cos \phi _{\textrm {m}}\sin {\frac {\Delta \lambda }{2}}\right)^{2}}}\ .\end{aligned}}}

The square root appearing above can be eliminated for such applications as ordering locations by distance in a database query. On the other hand, some methods for computing nearest neighbors, such as the vantage-point tree, require that the distance metric obey the triangle inequality, in which case the square root must be retained.

In the case of medium or low latitude Although not being universal, the above is furthermore simplified by approximating sinusoidal functions of Δ λ 2 {\displaystyle {\frac {\Delta \lambda }{2}}} , justified except for high latitude:

D ≈ R ( Δ ϕ ) 2 + ( cos ⁡ ( ϕ m ) Δ λ ) 2 {\displaystyle D\approx R{\sqrt {(\Delta \phi )^{2}+(\cos(\phi _{\mathrm {m} })\Delta \lambda )^{2}}}} .

Ellipsoidal Earth approximation formulae The above formula is extended for ellipsoidal Earth:

D ≈ ( M ( ϕ m ) Δ ϕ cos ⁡ Δ λ 2 ) 2 + ( 2 N ( ϕ m ) cos ⁡ ϕ m sin ⁡ Δ λ 2 ) 2 , {\displaystyle {\begin{aligned}D&\approx {\sqrt {\left(M\left(\phi _{\textrm {m}}\right)\Delta \phi \,\cos {\frac {\Delta \lambda }{2}}\right)^{2}+\left(2N\left(\phi _{\textrm {m}}\right)\cos \phi _{\textrm {m}}\sin {\frac {\Delta \lambda }{2}}\right)^{2}}},\end{aligned}}}

where M {\displaystyle M\,\!} and N {\displaystyle N\,\!} are the meridional and its perpendicular, or "normal", radii of curvature of Earth (See also "Geographic coordinate conversion" for their formulas). It is derived by the approximation of ( cos ⁡ ϕ m sin ⁡ Δ λ 2 Δ ϕ ) 2 ≈ 0 {\displaystyle \left(\cos \phi _{\textrm {m}}\sin {\frac {\Delta \lambda }{2}}\Delta \phi \right)^{2}\approx 0} in the square root. This approximation can be viewed simply as the 3D Cartesian chord distance between two points on the ellipsoid, and equivalently as a chordal simplification of the Gauss mid-latitude method. Although we have not found this explicit formula in classical sources, the Gauss mid-latitude method itself is described in Rapp (1991).

In the case of medium or low latitude Although not being universal, the above is furthermore simplified by approximating sinusoidal functions of Δ λ 2 {\displaystyle {\frac {\Delta \lambda }{2}}} , justified except for high latitude as above:

D ≈ ( M ( ϕ m ) Δ ϕ ) 2 + ( N ( ϕ m ) cos ⁡ ϕ m Δ λ ) 2 . {\displaystyle D\approx {\sqrt {(M(\phi _{\mathrm {m} })\Delta \phi )^{2}+(N(\phi _{\mathrm {m} })\cos \phi _{\mathrm {m} }\Delta \lambda )^{2}}}.}

FCC's formula The Federal Communications Commission (FCC) prescribes the following formulae for distances not exceeding 475 kilometres (295 mi):

D ≈ ( K 1 Δ ϕ ) 2 + ( K 2 Δ λ ) 2 , {\displaystyle D\approx {\sqrt {(K_{1}\Delta \phi )^{2}+(K_{2}\Delta \lambda )^{2}}},}

where

D {\displaystyle D\,\!} = Distance in kilometers;

Δ ϕ {\displaystyle \Delta \phi \,\!} and Δ λ {\displaystyle \Delta \lambda \,\!} are in degrees;

ϕ m {\displaystyle \phi _{\mathrm {m} }\,\!} must be in units compatible with the method used for determining cos ⁡ ϕ m ; {\displaystyle \cos \phi _{\mathrm {m} };\,\!}

K 1 = 111.13209 − 0.56605 cos ⁡ ( 2 ϕ m ) + 0.00120 cos ⁡ ( 4 ϕ m ) ; K 2 = 111.41513 cos ⁡ ( ϕ m ) − 0.09455 cos ⁡ ( 3 ϕ m ) + 0.00012 cos ⁡ ( 5 ϕ m ) . {\displaystyle {\begin{aligned}K_{1}&=111.13209-0.56605\cos(2\phi _{\mathrm {m} })+0.00120\cos(4\phi _{\mathrm {m} });\\K_{2}&=111.41513\cos(\phi _{\mathrm {m} })-0.09455\cos(3\phi _{\mathrm {m} })+0.00012\cos(5\phi _{\mathrm {m} }).\end{aligned}}\,\!}

Where K 1 {\displaystyle K_{1}} and K 2 {\displaystyle K_{2}} are in units of kilometers per arc degree. They are derived from radii of curvature of Earth as follows:

K 1 = M ( ϕ m ) π 180 {\displaystyle K_{1}=M(\phi _{\mathrm {m} }){\frac {\pi }{180}}\,\!} = kilometers per arc degree of latitude difference;

K 2 = cos ⁡ ( ϕ m ) N ( ϕ m ) π 180 {\displaystyle K_{2}=\cos(\phi _{\mathrm {m} })N(\phi _{\mathrm {m} }){\frac {\pi }{180}}\,\!} = kilometers per arc degree of longitude difference; Note that the expressions in the FCC formula are derived from the truncation of the binomial series expansion form of M {\displaystyle M\,\!} and N {\displaystyle N\,\!} , set to the Clarke 1866 reference ellipsoid. For a more computationally efficient implementation of the formula above, multiple applications of cosine can be replaced with a single application and use of recurrence relation for Chebyshev polynomials.

Polar coordinate flat-Earth formula

D = R θ 1 2 + θ 2 2 − 2 θ 1 θ 2 cos ⁡ ( Δ λ ) , {\displaystyle D=R{\sqrt {\theta _{1}^{2}\;{\boldsymbol {+}}\;\theta _{2}^{2}\;\mathbf {-} \;2\theta _{1}\theta _{2}\cos(\Delta \lambda )}},}

where the colatitude values are in radians: θ = π 2 − ϕ . {\displaystyle \theta ={\frac {\pi }{2}}-\phi .}

For a latitude measured in degrees, the colatitude in radians may be calculated as follows: θ = π 180 ( 90 ∘ − ϕ ) . {\displaystyle \theta ={\frac {\pi }{180}}(90^{\circ }-\phi ).\,\!}

Spherical-surface formulae

If one is willing to accept a possible error of 0.5%, one can use formulas of spherical trigonometry on the sphere that best approximates the surface of the Earth. The shortest distance along the surface of a sphere between two points on the surface is along the great-circle which contains the two points. The great-circle distance article gives the formula for calculating the shortest arch length D {\displaystyle D} on a sphere about the size of the Earth. That article includes an example of the calculation. For example, from tunnel distance D t {\displaystyle D_{\textrm {t}}} ,

D = 2 R arcsin ⁡ D t 2 R . {\displaystyle D=2R\arcsin {\frac {D_{\textrm {t}}}{2R}}.}

For short distances ( D ≪ R {\displaystyle D\ll R} ),

D = D t ( 1 + 1 24 ( D t R ) 2 + ⋯ ) . {\displaystyle D=D_{\textrm {t}}\left(1+{\frac {1}{24}}\left({\frac {D_{\textrm {t}}}{R}}\right)^{2}+\cdots \right).}

Tunnel distance A tunnel between points on Earth is defined by a Cartesian line through three-dimensional space between the points of interest. The tunnel distance D t = 2 R sin ⁡ D 2 R {\displaystyle D_{\textrm {t}}=2R\sin {\frac {D}{2R}}} is the great-circle chord length and may be calculated as follows for the corresponding unit sphere:

Δ X = cos ⁡ ( ϕ 2 ) cos ⁡ ( λ 2 ) − cos ⁡ ( ϕ 1 ) cos ⁡ ( λ 1 ) ; Δ Y = cos ⁡ ( ϕ 2 ) sin ⁡ ( λ 2 ) − cos ⁡ ( ϕ 1 ) sin ⁡ ( λ 1 ) ; Δ Z = sin ⁡ ( ϕ 2 ) − sin ⁡ ( ϕ 1 ) ; D t = R ( Δ X ) 2 + ( Δ Y ) 2 + ( Δ Z ) 2 = 2 R sin 2 ⁡ Δ ϕ 2 + ( cos 2 ⁡ Δ ϕ 2 − sin 2 ⁡ ϕ m ) sin 2 ⁡

Tags

  • Cartography
  • Earth
  • Geodesy