Geographical distance

From HandWiki - Reading time: 12 min

Short description: Distance measured along the surface of the Earth
View from the Swabian Jura to the Alps

Geographical distance or geodetic distance is the distance measured along the surface of the Earth, or the shortest arch 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.[1] 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.

Nomenclature

Arc distance, [math]\displaystyle{ D,\,\! }[/math] is the minimum distance along the surface of sphere/ellipsoid calculated between two points, [math]\displaystyle{ P_1\,\! }[/math] and [math]\displaystyle{ P_2\,\! }[/math]. Whereas, the tunnel distance, or chord length, [math]\displaystyle{ D_\textrm{t} }[/math], is measured along Cartesian straight line. The geographical coordinates of the two points, as (latitude, longitude) pairs, are [math]\displaystyle{ (\phi_1,\lambda_1)\,\! }[/math] and [math]\displaystyle{ (\phi_2,\lambda_2),\,\! }[/math] respectively. Which of the two points is designated as [math]\displaystyle{ P_1\,\! }[/math] is not important for the calculation of distance.

Latitude and longitude 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:

[math]\displaystyle{ \begin{align} \Delta\phi&=\phi_2-\phi_1;\\ \Delta\lambda&=\lambda_2-\lambda_1. \end{align} \,\! }[/math]

It is not important whether the result is positive or negative when used in the formulae below.

"Mean latitude" is labeled and calculated as follows:

[math]\displaystyle{ \phi_\mathrm{m}=\frac{\phi_1+\phi_2}{2}.\,\! }[/math]

Colatitude is labeled and calculated as follows:

For latitudes expressed in radians:
[math]\displaystyle{ \theta=\frac{\pi}{2}-\phi;\,\! }[/math]
For latitudes expressed in degrees:
[math]\displaystyle{ \theta=90^\circ-\phi.\,\! }[/math]

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

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

[math]\displaystyle{ D_\,\! }[/math] = 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

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 ([math]\displaystyle{ \Delta\phi\! }[/math], [math]\displaystyle{ \Delta\lambda\! }[/math]) and mean latitude ([math]\displaystyle{ \phi_\mathrm{m}\! }[/math]) may not give the expected answer for positions near the Poles or the ±180° meridian. Consider e.g. the value of [math]\displaystyle{ \Delta\lambda\! }[/math] ("east displacement") when [math]\displaystyle{ \lambda_1\! }[/math] and [math]\displaystyle{ \lambda_2\! }[/math] are on either side of the ±180° meridian, or the value of [math]\displaystyle{ \phi_\mathrm{m}\! }[/math] ("mean latitude") for the two positions ([math]\displaystyle{ \phi_1\! }[/math]=89°, [math]\displaystyle{ \lambda_1\! }[/math]=45°) and ([math]\displaystyle{ \phi_2\! }[/math]=89°, [math]\displaystyle{ \lambda_2\! }[/math]=−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 formulae

A planar approximation for the surface of the Earth may be useful over small distances. The accuracy of distance calculations using this approximation become increasingly inaccurate as:

  • The separation between the points becomes greater;
  • A point becomes closer to a geographic pole.

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 if omitting the conversion between arc and chord lengths shown below, it approximates the arc length, [math]\displaystyle{ D }[/math], in the case that [math]\displaystyle{ \Delta \lambda }[/math] is small or [math]\displaystyle{ \Delta \phi }[/math] and [math]\displaystyle{ \phi_\textrm{m} }[/math] are small.

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 projected to a plane

This formula takes into account the variation in distance between meridians with latitude:

[math]\displaystyle{ D=R\sqrt{(\Delta\phi)^2+(\cos(\phi_\mathrm{m})\Delta\lambda)^2}, }[/math]
where:
[math]\displaystyle{ \Delta\phi\,\! }[/math] and [math]\displaystyle{ \Delta\lambda\,\! }[/math] are in radians;
[math]\displaystyle{ \phi_\mathrm{m}\,\! }[/math] must be in units compatible with the method used for determining [math]\displaystyle{ \cos(\phi_\mathrm{m}).\,\! }[/math]
To convert latitude or longitude to radians use
[math]\displaystyle{ 1^\circ = (\pi/180)\,\mathrm{radians}. }[/math]

This approximation is very fast and produces fairly accurate result for small distances [citation needed]. Also, when ordering locations by distance, such as in a database query, it is faster to order by squared distance, eliminating the need for computing the square root.

Ellipsoidal Earth projected to a plane

The above formula is extended for ellipsoidal Earth:[2]

[math]\displaystyle{ D=\sqrt{(M(\phi_\mathrm{m})\Delta\phi)^2+(N(\phi_\mathrm{m})\cos\phi_\mathrm{m}\Delta\lambda)^2}, }[/math]
where [math]\displaystyle{ M\,\! }[/math] and [math]\displaystyle{ N\,\! }[/math] are the meridional and its perpendicular, or "normal", radii of curvature of Earth. See also "Geographic coordinate conversion" for their formulas.

FCC's formula

The FCC prescribes the following formulae for distances not exceeding 475 kilometres (295 mi):[3]

[math]\displaystyle{ D=\sqrt{(K_1\Delta\phi)^2+(K_2\Delta\lambda)^2}, }[/math]
where
[math]\displaystyle{ D\,\! }[/math] = Distance in kilometers;
[math]\displaystyle{ \Delta\phi\,\! }[/math] and [math]\displaystyle{ \Delta\lambda\,\! }[/math] are in degrees;
[math]\displaystyle{ \phi_\mathrm{m}\,\! }[/math] must be in units compatible with the method used for determining [math]\displaystyle{ \cos(\phi_\mathrm{m});\,\! }[/math]
[math]\displaystyle{ \begin{align} 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{align}\,\! }[/math]
Where [math]\displaystyle{ K_1 }[/math] and [math]\displaystyle{ K_2 }[/math] are in units of kilometers per arc degree. They are derived from radii of curvature of Earth as follows:
[math]\displaystyle{ K_1=M(\phi_\mathrm{m})\frac{\pi}{180}\,\! }[/math] = kilometers per arc degree of latitude difference;
[math]\displaystyle{ K_2=\cos(\phi_\mathrm{m})N(\phi_\mathrm{m})\frac{\pi}{180}\,\! }[/math] = 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 [math]\displaystyle{ M\,\! }[/math] and [math]\displaystyle{ N\,\! }[/math], 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

[math]\displaystyle{ D=R\sqrt{\theta^2_1\;\boldsymbol{+}\;\theta^2_2\;\mathbf{-}\;2\theta_1\theta_2\cos(\Delta\lambda)}, }[/math]
where the colatitude values are in radians. For a latitude measured in degrees, the colatitude in radians may be calculated as follows: [math]\displaystyle{ \theta=\frac{\pi}{180}(90^\circ-\phi).\,\! }[/math]

Spherical-surface formulae

Main page: Great-circle distance

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 [math]\displaystyle{ D }[/math] on a sphere about the size of the Earth. That article includes an example of the calculation. For example, from tunnel distance [math]\displaystyle{ D_\textrm{t} }[/math],

[math]\displaystyle{ D = 2 R \arcsin \frac{D_\textrm{t}}{2 R}. }[/math]

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 [math]\displaystyle{ D_\textrm{t} = 2 R \sin \frac{D}{2 R} }[/math] is the great-circle chord length and may be calculated as follows for the corresponding unit sphere:

[math]\displaystyle{ \begin{align} &\Delta{X}=\cos(\phi_2)\cos(\lambda_2) - \cos(\phi_1)\cos(\lambda_1);\\ &\Delta{Y}=\cos(\phi_2)\sin(\lambda_2) - \cos(\phi_1)\sin(\lambda_1);\\ &\Delta{Z}=\sin(\phi_2) - \sin(\phi_1);\\ &D_\textrm{t}=R \sqrt{(\Delta{X})^2 + (\Delta{Y})^2 + (\Delta{Z})^2}.\end{align} }[/math]

Or

[math]\displaystyle{ \begin{align} D_\textrm{t} &= 2 R \sqrt{\sin^2\frac{\Delta\phi}{2} + \left(\cos^2\frac{\Delta\phi}{2} - \sin^2\phi_\textrm{m}\right) \sin^2\frac{\Delta\lambda}{2}} \\ &= 2 R \sqrt{\left(\sin \frac{\Delta \lambda}{2} \cos\phi_\textrm{m} \right)^2 + \left(\cos \frac{\Delta \lambda}{2} \sin \frac{\Delta \phi}{2} \right)^2}. \end{align} }[/math]

For short distances ([math]\displaystyle{ D\ll R }[/math]), this underestimates the great circle distance by [math]\displaystyle{ D(D/R)^2/24 }[/math].

Ellipsoidal-surface formulae

Main page: Geodesics on an ellipsoid
Geodesic on an oblate ellipsoid

An ellipsoid approximates the surface of the Earth much better than a sphere or a flat surface does. The shortest distance along the surface of an ellipsoid between two points on the surface is along the geodesic. Geodesics follow more complicated paths than great circles and in particular, they usually don't return to their starting positions after one circuit of the Earth. This is illustrated in the figure on the right where f is taken to be 1/50 to accentuate the effect. Finding the geodesic between two points on the Earth, the so-called inverse geodetic problem, was the focus of many mathematicians and geodesists over the course of the 18th and 19th centuries with major contributions by Clairaut,[4] Legendre,[5] Bessel,[6] and Helmert.[7] Rapp[8] provides a good summary of this work.

Methods for computing the geodesic distance are widely available in geographical information systems, software libraries, standalone utilities, and online tools. The most widely used algorithm is by Vincenty,[9] who uses a series which is accurate to third order in the flattening of the ellipsoid, i.e., about 0.5 mm; however, the algorithm fails to converge for points that are nearly antipodal. (For details, see Vincenty's formulae.) This defect is cured in the algorithm given by Karney,[10] who employs series which are accurate to sixth order in the flattening. This results in an algorithm which is accurate to full double precision and which converges for arbitrary pairs of points on the Earth. This algorithm is implemented in GeographicLib.[11]

The exact methods above are feasible when carrying out calculations on a computer. They are intended to give millimeter accuracy on lines of any length; one can use simpler formulas if one doesn't need millimeter accuracy, or if one does need millimeter accuracy but the line is short.

The short-line methods have benn studied by several researchers. Rapp,[12] Chap. 6, describes the Puissant method, the Gauss mid-latitude method, and the Bowring method.[13] Karl Hubeny[14] got the expanded series of Gauss mid-latitude one represented as the correction to flat-surface one.

Lambert's formula for long lines

Lambert's formulae[15] give accuracy on the order of 10 meters over thousands of kilometers. First convert the latitudes [math]\displaystyle{ \scriptstyle \phi_1 }[/math], [math]\displaystyle{ \scriptstyle \phi_2 }[/math] of the two points to reduced latitudes [math]\displaystyle{ \scriptstyle \beta_1 }[/math], [math]\displaystyle{ \scriptstyle \beta_2 }[/math]

[math]\displaystyle{ \tan \beta = (1 - f) \tan \phi, }[/math]

where [math]\displaystyle{ f }[/math] is the flattening. Then calculate the central angle [math]\displaystyle{ \sigma }[/math] in radians between two points [math]\displaystyle{ (\beta_1 , \; \lambda_1) }[/math] and [math]\displaystyle{ (\beta_2 , \; \lambda_2) }[/math] on a sphere using the Great-circle distance method (haversine formula), with longitudes [math]\displaystyle{ \lambda_1 \; }[/math] and [math]\displaystyle{ \lambda_2 \; }[/math] being the same on the sphere as on the spheroid.

[math]\displaystyle{ P = \frac { \beta_1 + \beta_2 }{2} \qquad Q = \frac {\beta_2 - \beta_1}{2} }[/math]
[math]\displaystyle{ X = ( \sigma - \sin \sigma) \frac {\sin^2 P \cos^2 Q}{ \cos^2 \frac { \sigma}{2}} \qquad \qquad Y = ( \sigma + \sin \sigma) \frac {\cos^2 P \sin^2 Q}{ \sin^2 \frac { \sigma}{2}} }[/math]

[math]\displaystyle{ \mathrm{distance} = a \bigl( \sigma - \tfrac f2 (X + Y) \bigr) }[/math]

where [math]\displaystyle{ a }[/math] is the equatorial radius of the chosen spheroid.

On the GRS 80 spheroid Lambert's formula is off by

0 North 0 West to 40 North 120 West, 12.6 meters
0N 0W to 40N 60W, 6.6 meters
40N 0W to 40N 60W, 0.85 meter

Gauss mid-latitude method for short lines

It has the form of the arc length converted from tunnel distance. Detailed formulas are given by Rapp,[12] §6.4.

[math]\displaystyle{ D = 2 N\left(\phi_\textrm{m}\right) \arcsin \sqrt{\left(\sin \frac{\Delta \lambda}{2} \cos\phi_\textrm{m} \right)^2 + \left(\cos \frac{\Delta \lambda}{2} \sin \frac{M\left(\phi_\textrm{m}\right) \Delta \phi}{2 N\left(\phi_\textrm{m}\right)} \right)^2}. }[/math]

Bowring's method for short lines

Bowring maps the points to a sphere of radius R′, with latitude and longitude represented as φ′ and λ′. Define

[math]\displaystyle{ A = \sqrt{1 + e'^2\cos^4 \phi_1}, \quad B = \sqrt{1 + e'^2\cos^2 \phi_1}, }[/math]

where the second eccentricity squared is

[math]\displaystyle{ e'^2 = \frac{a^2 - b^2}{b^2} = \frac{f(2-f)}{(1-f)^2}. }[/math]

The spherical radius is

[math]\displaystyle{ R' = \frac{\sqrt{1 + e'^2 }}{B^2} a. }[/math]

(The Gaussian curvature of the ellipsoid at φ1 is 1/R′2.) The spherical coordinates are given by

[math]\displaystyle{ \begin{align} \tan\phi_1' &= \frac{\tan\phi}B,\\ \Delta\phi' &= \frac{\Delta \phi}{B}\biggl[1 + \frac{3 e'^2 }{4 B^2}(\Delta \phi) \sin (2 \phi_1 + \tfrac23 \Delta \phi )\biggr],\\ \Delta\lambda' &= A\Delta\lambda, \end{align} }[/math]

where [math]\displaystyle{ \Delta\phi=\phi_2-\phi_1 }[/math], [math]\displaystyle{ \Delta\phi'=\phi_2'-\phi_1' }[/math], [math]\displaystyle{ \Delta\lambda=\lambda_2-\lambda_1 }[/math], [math]\displaystyle{ \Delta\lambda'=\lambda_2'-\lambda_1' }[/math]. The resulting problem on the sphere may be solved using the techniques for great-circle navigation to give approximations for the spheroidal distance and bearing. Detailed formulas are given by Rapp,[12] §6.5 and Bowring.[13]

Altitude correction

The variation in altitude from the topographical or ground level down to the sphere's or ellipsoid's surface, also changes the scale of distance measurements.[16] The slant distance s (chord length) between two points can be reduced to the arc length on the ellipsoid surface S as:[17]

[math]\displaystyle{ S-s=-0.5(h_1+h_2)s/R-0.5(h_1-h_2)^2/s }[/math]

where R is evaluated from Earth's azimuthal radius of curvature and h are ellipsoidal heights are each point. The first term on the right-hand side of the equation accounts for the mean elevation and the second term for the inclination. A further reduction of the above Earth normal section length to the ellipsoidal geodesic length is often negligible.[17]

See also

References

  1. "The British Cartographic Society > How long is the UK coastline?". http://www.cartography.org.uk/default.asp?contentID=749. 
  2. Williams, E. (2002). "Navigation on the spheroidal earth.". https://edwilliams.org/ellipsoid/ellipsoid.html. 
  3. "Reference points and distance computations". Code of Federal Regulations (Annual Edition). Title 47: Telecommunication. 73 (208). October 1, 2016. https://www.gpo.gov/fdsys/pkg/CFR-2016-title47-vol4/pdf/CFR-2016-title47-vol4-sec73-208.pdf. Retrieved 8 November 2017. 
  4. Clairaut, A. C. (1735). "Détermination géometrique de la perpendiculaire à la méridienne tracée par M. Cassini" (in fr). Mémoires de l'Académie Royale des Sciences de Paris 1733: 406–416. https://books.google.com/books?id=GOAEAAAAQAAJ&pg=PA406. 
  5. Legendre, A. M. (1806). "Analyse des triangles tracées sur la surface d'un sphéroïde" (in fr). Mémoires de l'Institut National de France (1st semester): 130–161. https://books.google.com/books?id=EnVFAAAAcAAJ&pg=PA130. 
  6. Bessel, F. W. (2010). . Translated by C. F. F. Karney & R. E. Deakin. "The calculation of longitude and latitude from geodesic measurements". Astronomische Nachrichten 331 (8): 852–861. doi:10.1002/asna.201011352. Bibcode2010AN....331..852K. English translation of Astron. Nachr. 4, 241–254 (1825). Errata. 
  7. Helmert, F. R. (1964). Mathematical and Physical Theories of Higher Geodesy. 1. St. Louis: Aeronautical Chart and Information Center. https://geographiclib.sourceforge.io/geodesic-papers/helmert80-en.html. English translation of Die Mathematischen und Physikalischen Theorieen der Höheren Geodäsie, Vol. 1 (Teubner, Leipzig, 1880). 
  8. Template:Cite tech report
  9. "Direct and Inverse Solutions of Geodesics on the Ellipsoid with application of nested equations". Survey Review 23 (176): 88–93. April 1975. doi:10.1179/sre.1975.23.176.88. http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf. Retrieved 2009-07-11. Addendum: Survey Review 23 (180): 294 (1976). 
  10. Karney, C. F. F. (2013). "Algorithms for geodesics". Journal of Geodesy 87 (1): 43–55. doi:10.1007/s00190-012-0578-z. Bibcode2013JGeod..87...43K(open access). Addenda. 
  11. Karney, C. F. F. (2013). "GeographicLib". https://geographiclib.sourceforge.io. 
  12. 12.0 12.1 12.2 Rapp, R, H (1991). Geometric Geodesy, Part I (Report). Ohio Start Univ.. 
  13. 13.0 13.1 Bowring, B. R. (1981). "The direct and inverse problems for short geodesics lines on the ellipsoid". Surveying and Mapping 41 (2): 135–141. 
  14. Hubeny, K. (1954). Entwicklung der Gauss'schen Mittelbreitenformeln, Österreichische Zeitschrift für Vermessungswesen.
  15. Lambert, W. D (1942). "The distance between two widely separated points on the surface of the earth". J. Washington Academy of Sciences 32 (5): 125–130. 
  16. "Archived copy". http://www.tech.mtu.edu/courses/su3150/Reference%20Material/Vincenty.pdf. 
  17. 17.0 17.1 Torge & Müller (2012) Geodesy, De Gruyter, p.249

External links




Licensed under CC BY-SA 3.0 | Source: https://handwiki.org/wiki/Earth:Geographical_distance
9 views | Status: cached on August 02 2024 15:11:21
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF