HOME

TheInfoList



OR:

Geographical distance or geodetic distance is the
distance Distance is a numerical or occasionally qualitative measurement of how far apart objects, points, people, or ideas are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two co ...
measured along the surface of the
Earth Earth is the third planet from the Sun and the only astronomical object known to Planetary habitability, harbor life. This is enabled by Earth being an ocean world, the only one in the Solar System sustaining liquid surface water. Almost all ...
, or the shortest arch length. The formulae in this article calculate distances between points which are defined by geographical coordinates in terms of
latitude In geography, latitude is a geographic coordinate system, geographic coordinate that specifies the north-south position of a point on the surface of the Earth or another celestial body. Latitude is given as an angle that ranges from −90° at t ...
and
longitude Longitude (, ) is a geographic coordinate that specifies the east- west position of a point on the surface of the Earth, or another celestial body. It is an angular measurement, usually expressed in degrees and denoted by the Greek lett ...
. 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

* Tunnel-distance-based short-range approximations: Flat surface, Gauss-mid-latitude; \max , \Delta D_\text, \propto D^3 ** Bowring's method for short lines improved by Karney using reduces latitude and mid-latitude; \max , \Delta D_\text, \propto D^4 * f^0-order approximation method: Spherical surface; \max , \Delta D_\text, \propto D * higher-order approximations based on Ellipsoid: f^1: Andoyer(1932); Andoyer-Lambert(1942), f^2: Andoyer-Lambert-Thomas(1970), f^3: Vincenty(1975), f^6: Kaney(2011); \max , \Delta D_\text, \propto D on the closed hemisphere The theoretical estimations of error are added in above and f is the
flattening Flattening is a measure of the compression of a circle or sphere along a diameter to form an ellipse or an ellipsoid of revolution (spheroid) respectively. Other terms used are ellipticity, or oblateness. The usual notation for flattening is f ...
of the Earth.


Nomenclature

Arc distance, D,\,\! is the minimum distance along the surface of sphere/ellipsoid calculated between two points, P_1\,\! and P_2\,\!. Whereas, the tunnel distance, or chord length, D_\textrm, is measured along Cartesian straight line. The geographical coordinates of the two points, as (latitude, longitude) pairs, are (\phi_1,\lambda_1)\,\! and (\phi_2,\lambda_2),\,\! respectively. Which of the two points is designated as P_1\,\! is not important for the calculation of distance. Latitude \phi\,\! and longitude \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
radian The radian, denoted by the symbol rad, is the unit of angle in the International System of Units (SI) and is the standard unit of angular measure used in many areas of mathematics. It is defined such that one radian is the angle subtended at ...
s. The calculator mode must be compatible with the units used for geometric coordinates. Differences in latitude and longitude are labeled and calculated as follows: :\begin \Delta\phi&=\phi_2-\phi_1;\\ \Delta\lambda&=\lambda_2-\lambda_1. \end \,\! 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: :\phi_\mathrm=\frac.\,\! Unless specified otherwise, the
radius In classical geometry, a radius (: radii or radiuses) of a circle or sphere is any of the line segments from its Centre (geometry), center to its perimeter, and in more modern usage, it is also their length. The radius of a regular polygon is th ...
of the Earth for the calculations below is: :R\,\! = 6,371.009 kilometers = 3,958.761 statute miles = 3,440.069
nautical mile A nautical mile is a unit of length used in air, marine, and space navigation, and for the definition of territorial waters. Historically, it was defined as the meridian arc length corresponding to one minute ( of a degree) of latitude at t ...
s. 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 \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 Pole or poles may refer to: People *Poles (people), another term for Polish people, from the country of Poland * Pole (surname), including a list of people with the name * Pole (musician) (Stefan Betke, born 1967), German electronic music artist ...
(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 Delta commonly refers to: * Delta (letter) (Δ or δ), the fourth letter of the Greek alphabet * D (NATO phonetic alphabet: "Delta"), the fourth letter in the Latin alphabet * River delta, at a river mouth * Delta Air Lines, a major US carrier ...
latitude/longitude (\Delta\phi\!, \Delta\lambda\!) and mid-latitude (\phi_\mathrm\!) may not give the expected answer for positions near the Poles or the ±180° meridian. Consider e.g. the value of \Delta\lambda\! ("east displacement") when \lambda_1\! and \lambda_2\! are on either side of the ±180° meridian, or the value of \phi_\mathrm\! ("mid-latitude") for the two positions (\phi_1\!=89°, \lambda_1\!=45°) and (\phi_2\!=89°, \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, to the tunnel distance, D_\textrm, 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 In mathematics, the Pythagorean theorem or Pythagoras' theorem is a fundamental relation in Euclidean geometry between the three sides of a right triangle. It states that the area of the square whose side is the hypotenuse (the side opposite t ...
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 Cartography (; from , 'papyrus, sheet of paper, map'; and , 'write') is the study and practice of making and using maps. Combining science, aesthetics and technique, cartography builds on the premise that reality (or an imagined reality) can ...
. The formulae presented in this section provide varying degrees of accuracy.


Spherical Earth approximation formulae

The tunnel distance, D_\textrm, is calculated on Spherical Earth. This formula takes into account the variation in distance between meridians with latitude, assuming D \approx D_\textrm: : \begin D_\textrm &= 2 R \sqrt \\ &\approx R \sqrt \ . \end 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 mathematics, the triangle inequality states that for any triangle, the sum of the lengths of any two sides must be greater than or equal to the length of the remaining side. This statement permits the inclusion of Degeneracy (mathematics)#T ...
, 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 \frac, justified except for high latitude: :D \approx R\sqrt.


Ellipsoidal Earth approximation formulae

The above formula is extended for ellipsoidal Earth: : \begin D &\approx 2 \sqrt, \\ &\approx \sqrt, \end where M\,\! and 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 \left(\cos \phi_\textrm \sin\frac \Delta \phi \right)^2 \approx 0 in the square root.


In the case of medium or low latitude

Although not being universal, the above is furthermore simplified by approximating sinusoidal functions of \frac, justified except for high latitude as above: :D \approx \sqrt.


FCC's formula

The
Federal Communications Commission The Federal Communications Commission (FCC) is an independent agency of the United States government that regulates communications by radio, television, wire, internet, wi-fi, satellite, and cable across the United States. The FCC maintains j ...
(FCC) prescribes the following formulae for distances not exceeding : :D \approx \sqrt, :where ::D\,\! = Distance in kilometers; ::\Delta\phi\,\! and \Delta\lambda\,\! are in degrees; ::\phi_\mathrm\,\! must be in units compatible with the method used for determining \cos \phi_\mathrm ;\,\! ::\begin K_1&=111.13209-0.56605\cos(2\phi_\mathrm)+0.00120\cos(4\phi_\mathrm);\\ K_2&=111.41513\cos(\phi_\mathrm)-0.09455\cos(3\phi_\mathrm)+0.00012\cos(5\phi_\mathrm).\end\,\! :Where K_1 and K_2 are in units of kilometers per arc degree. They are derived from radii of curvature of Earth as follows: ::K_1=M(\phi_\mathrm)\frac\,\! = kilometers per arc degree of latitude difference; ::K_2=\cos(\phi_\mathrm)N(\phi_\mathrm)\frac\,\! = 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\,\! and 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\sqrt, :where the colatitude values are in radians: \theta=\frac-\phi . :For a latitude measured in degrees, the colatitude in radians may be calculated as follows: \theta=\frac(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 Spherical trigonometry is the branch of spherical geometry that deals with the metrical relationships between the edge (geometry), sides and angles of spherical triangles, traditionally expressed using trigonometric functions. On the sphere, ge ...
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 The great-circle distance, orthodromic distance, or spherical distance is the distance between two points on a sphere, measured along the great-circle arc between them. This arc is the shortest path between the two points on the surface of the ...
article gives the formula for calculating the shortest arch length D on a sphere about the size of the Earth. That article includes an example of the calculation. For example, from tunnel distance D_\textrm, :D = 2 R \arcsin \frac. For short distances (D\ll R), :D = D_\textrm \left(1 + \frac \left(\frac\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_\textrm = 2 R \sin \frac is the great-circle chord length and may be calculated as follows for the corresponding unit sphere: :\begin \Delta&=\cos(\phi_2)\cos(\lambda_2) - \cos(\phi_1)\cos(\lambda_1);\\ \Delta&=\cos(\phi_2)\sin(\lambda_2) - \cos(\phi_1)\sin(\lambda_1);\\ \Delta&=\sin(\phi_2) - \sin(\phi_1);\\ D_\textrm&=R \sqrt\\ &= 2 R \sqrt \\ &= 2 R \sqrt.\end


Ellipsoidal-surface formulae

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, Legendre, Bessel, and Helmert English translation o
''Astron. Nachr.'' 4, 241–254 (1825)
Rapp 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, 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, 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. 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 been studied by several researchers. Rapp, Chap. 6, describes the Puissant method, the Gauss mid-latitude method, and the Bowring method. Karl Hubeny got the expanded series of Gauss mid-latitude one represented as the correction to flat-surface one.


Lambert's formula for long lines

Historically, the long-line formulae were derived in the form of expansion series with regard to
flattening Flattening is a measure of the compression of a circle or sphere along a diameter to form an ellipse or an ellipsoid of revolution (spheroid) respectively. Other terms used are ellipticity, or oblateness. The usual notation for flattening is f ...
f. Andoyer-Lambert formulae use the first-order correction and reduced latitude, \beta = \arctan \left( (1 - f) \tan \phi \right), for better accuracy. They give accuracy on the order of 10 meters over thousands of kilometers. First convert the latitudes \scriptstyle \phi_1, \scriptstyle \phi_2 of the two points to reduced latitudes \scriptstyle \beta_1, \scriptstyle \beta_2. Then calculate the central angle \sigma in radians between two points (\beta_1 , \; \lambda_1) and (\beta_2 , \; \lambda_2) on a sphere using the Great-circle distance method ( haversine formula), with longitudes \lambda_1 \; and \lambda_2 \; being the same on the sphere as on the spheroid. :P = \frac \qquad Q = \frac :X = ( \sigma - \sin \sigma) \frac \qquad \qquad Y = ( \sigma + \sin \sigma) \frac :D = a \bigl( \sigma - \tfrac f2 (X + Y) \bigr) , where a 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 similar form of the arc length converted from tunnel distance. Detailed formulas are given by Rapp, §6.4. It is consistent with the above-mentioned flat-surface formulae apparently. : D = 2 N\left(\phi_\textrm\right) \arcsin \sqrt.


Bowring's method for short lines

Bowring maps the points to a sphere of radius ''R′'', with latitude and longitude represented as φ′ and λ′. Define :A = \sqrt, \quad B = \sqrt, where the second eccentricity squared is : e'^2 = \frac = \frac. The spherical radius is :R' = \frac a. (The
Gaussian curvature In differential geometry, the Gaussian curvature or Gauss curvature of a smooth Surface (topology), surface in three-dimensional space at a point is the product of the principal curvatures, and , at the given point: K = \kappa_1 \kappa_2. For ...
of the ellipsoid at φ1 is 1/''R′''2.) The spherical coordinates are given by :\begin \tan\phi_1' &= \fracB,\\ \Delta\phi' &= \frac\biggl + \frac(\Delta \phi) \sin (2 \phi_1 + \tfrac23 \Delta \phi )\biggr\\ \Delta\lambda' &= A\Delta\lambda, \end where \Delta\phi=\phi_2-\phi_1, \Delta\phi'=\phi_2'-\phi_1', \Delta\lambda=\lambda_2-\lambda_1, \Delta\lambda'=\lambda_2'-\lambda_1'. 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 §6.5 and Bowring. The use of mid-latitude, \phi_\textrm = \frac, improves the accuracy, shown by Karney.


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. The slant distance ''s'' ( chord length) between two points can be reduced to the
arc length Arc length is the distance between two points along a section of a curve. Development of a formulation of arc length suitable for applications to mathematics and the sciences is a problem in vector calculus and in differential geometry. In the ...
on the ellipsoid surface ''S'' as:Torge & Müller (2012) Geodesy, De Gruyter, p.249 :S-s=-0.5(h_1+h_2)s/R-0.5(h_1-h_2)^2/s 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 Earth section paths are plane curves defined by the intersection of an earth ellipsoid and a plane ( ellipsoid plane sections). Common examples include the '' great ellipse'' (containing the center of the ellipsoid) and normal sections (conta ...
length to the ellipsoidal geodesic length is often negligible.


See also

* Arc measurement *
Earth radius Earth radius (denoted as ''R''🜨 or ''R''E) is the distance from the center of Earth to a point on or near its surface. Approximating the figure of Earth by an Earth spheroid (an oblate ellipsoid), the radius ranges from a maximum (equato ...
*
Spherical Earth Spherical Earth or Earth's curvature refers to the approximation of the figure of the Earth as a sphere. The earliest documented mention of the concept dates from around the 5th century BC, when it appears in the writings of Ancient Greek philos ...
*
Great-circle distance The great-circle distance, orthodromic distance, or spherical distance is the distance between two points on a sphere, measured along the great-circle arc between them. This arc is the shortest path between the two points on the surface of the ...
* Great-circle navigation * Ground sample distance * Vincenty's formulae *
Meridian arc In geodesy and navigation, a meridian arc is the curve (geometry), curve between two points near the Earth's surface having the same longitude. The term may refer either to a arc (geometry), segment of the meridian (geography), meridian, or to its ...
* Scale (map)


References

{{Reflist


External links

*A
online geodesic calculator
(based on GeographicLib). *A

Cartography Earth Geodesy