Geographical distance

Last updated
View from the Swabian Jura to the Alps Rossberg Alpen 1.14 2006.jpg
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.

Contents

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:

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

The theoretical estimations of error are added in above and is the flattening of the Earth.

Nomenclature

Arc distance, is the minimum distance along the surface of sphere/ellipsoid calculated between two points, and . Whereas, the tunnel distance, or chord length, , is measured along Cartesian straight line. The geographical coordinates of the two points, as (latitude, longitude) pairs, are and respectively. Which of the two points is designated as 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:

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:

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

= 6,371.009 kilometers = 3,958.761 statute miles = 3,440.069 nautical miles.

= 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 , 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 (, ) and mean latitude () may not give the expected answer for positions near the Poles or the ±180° meridian. Consider e.g. the value of ("east displacement") when and are on either side of the ±180° meridian, or the value of ("mean latitude") for the two positions (=89°, =45°) and (=89°, =−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, , to the tunnel distance, , 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

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

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

The above is furthermore simplified by approximating sinusoidal functions of , justified except for high latitude:

.

Ellipsoidal Earth approximation formulae

The above formula is extended for ellipsoidal Earth:

,

where and 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 in the square root.

In the case of medium or low latitude

The above is furthermore simplified by approximating sinusoidal functions of , justified except for high latitude as above: [2] [3]

FCC's formula

The Federal Communications Commission (FCC) prescribes the following formulae for distances not exceeding 475 kilometres (295 mi): [4]

where
= Distance in kilometers;
and are in degrees;
must be in units compatible with the method used for determining
Where and are in units of kilometers per arc degree. They are derived from radii of curvature of Earth as follows:
= kilometers per arc degree of latitude difference;
= 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 and , 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

where the colatitude values are in radians:
For a latitude measured in degrees, the colatitude in radians may be calculated as follows:

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 on a sphere about the size of the Earth. That article includes an example of the calculation. For example, from tunnel distance,

For short distances (),

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 is the great-circle chord length and may be calculated as follows for the corresponding unit sphere:

Ellipsoidal-surface formulae

Geodesic on an oblate ellipsoid Long geodesic on an oblate ellipsoid.svg
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, [5] Legendre, [6] Bessel, [7] and Helmert English translation of Astron. Nachr.4, 241–254 (1825). Errata. [8] Rapp [9] 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, [10] 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, [11] 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. [12]

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, [13] Chap. 6, describes the Puissant method, the Gauss mid-latitude method, and the Bowring method. [14] Karl Hubeny [15] 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 . [16] [17]

Lambert's formulae [18] use the first-order correction and reduced latitude, , for better accuracy. They give accuracy on the order of 10 meters over thousands of kilometers.

First convert the latitudes , of the two points to reduced latitudes , . Then calculate the central angle in radians between two points and on a sphere using the Great-circle distance method ( haversine formula), with longitudes and being the same on the sphere as on the spheroid.

,

where 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, [13] §6.4. It is consistent with the above-mentioned flat-surface formulae apparently.

Bowring's method for short lines

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

where the second eccentricity squared is

The spherical radius is

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

where , , , . 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 [13] §6.5, Bowring, [14] and Karney. [19]

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. [20] The slant distance s (chord length) between two points can be reduced to the arc length on the ellipsoid surface S as: [21]

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. [21]

See also

Related Research Articles

<span class="mw-page-title-main">Latitude</span> Geographic coordinate specifying north–south position

In geography, latitude is a 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 the south pole to 90° at the north pole, with 0° at the Equator. Lines of constant latitude, or parallels, run east–west as circles parallel to the equator. Latitude and longitude are used together as a coordinate pair to specify a location on the surface of the Earth.

<span class="mw-page-title-main">Ellipsoid</span> Quadric surface that looks like a deformed sphere

An ellipsoid is a surface that can be obtained from a sphere by deforming it by means of directional scalings, or more generally, of an affine transformation.

<span class="mw-page-title-main">Rhumb line</span> Arc crossing all meridians of longitude at the same angle

In navigation, a rhumb line, rhumb, or loxodrome is an arc crossing all meridians of longitude at the same angle, that is, a path with constant azimuth . Navigation on a fixed course would result in a rhumb-line track.

<span class="mw-page-title-main">Great-circle distance</span> Shortest distance between two points on the surface of a sphere

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 sphere.

In geodesy, conversion among different geographic coordinate systems is made necessary by the different geographic coordinate systems in use across the world and over time. Coordinate conversion is composed of a number of different types of conversion: format change of geographic coordinates, conversion of coordinate systems, or transformation to different geodetic datums. Geographic coordinate conversion has applications in cartography, surveying, navigation and geographic information systems.

In mathematics, the Carlson symmetric forms of elliptic integrals are a small canonical set of elliptic integrals to which all others may be reduced. They are a modern alternative to the Legendre forms. The Legendre forms may be expressed in terms of the Carlson forms and vice versa.

In probability theory, the Borel–Kolmogorov paradox is a paradox relating to conditional probability with respect to an event of probability zero. It is named after Émile Borel and Andrey Kolmogorov.

<span class="mw-page-title-main">Haversine formula</span> Formula for the great-circle distance between two points on a sphere

The haversine formula determines the great-circle distance between two points on a sphere given their longitudes and latitudes. Important in navigation, it is a special case of a more general formula in spherical trigonometry, the law of haversines, that relates the sides and angles of spherical triangles.

In differential geometry, the Laplace–Beltrami operator is a generalization of the Laplace operator to functions defined on submanifolds in Euclidean space and, even more generally, on Riemannian and pseudo-Riemannian manifolds. It is named after Pierre-Simon Laplace and Eugenio Beltrami.

<span class="mw-page-title-main">Universal Transverse Mercator coordinate system</span> Map projection system

The Universal Transverse Mercator (UTM) is a map projection system for assigning coordinates to locations on the surface of the Earth. Like the traditional method of latitude and longitude, it is a horizontal position representation, which means it ignores altitude and treats the earth surface as a perfect ellipsoid. However, it differs from global latitude/longitude in that it divides earth into 60 zones and projects each to the plane as a basis for its coordinates. Specifying a location means specifying the zone and the x, y coordinate in that plane. The projection from spheroid to a UTM zone is some parameterization of the transverse Mercator projection. The parameters vary by nation or region or mapping system.

<span class="mw-page-title-main">Tissot's indicatrix</span> Characterization of distortion in map projections

In cartography, a Tissot's indicatrix is a mathematical contrivance presented by French mathematician Nicolas Auguste Tissot in 1859 and 1871 in order to characterize local distortions due to map projection. It is the geometry that results from projecting a circle of infinitesimal radius from a curved geometric model, such as a globe, onto a map. Tissot proved that the resulting diagram is an ellipse whose axes indicate the two principal directions along which scale is maximal and minimal at that point on the map.

<span class="mw-page-title-main">Great-circle navigation</span> Flight or sailing route along the shortest path between two points on a globes surface

Great-circle navigation or orthodromic navigation is the practice of navigating a vessel along a great circle. Such routes yield the shortest distance between two points on the globe.

<span class="mw-page-title-main">Sunrise equation</span> Equation to derive time of sunset and sunrise

The sunrise equation or sunset equation can be used to derive the time of sunrise or sunset for any solar declination and latitude in terms of local solar time when sunrise and sunset actually occur.

Ellipsoidal coordinates are a three-dimensional orthogonal coordinate system that generalizes the two-dimensional elliptic coordinate system. Unlike most three-dimensional orthogonal coordinate systems that feature quadratic coordinate surfaces, the ellipsoidal coordinate system is based on confocal quadrics.

<span class="mw-page-title-main">Great ellipse</span> Ellipse on a spheroid centered on its origin

A great ellipse is an ellipse passing through two points on a spheroid and having the same center as that of the spheroid. Equivalently, it is an ellipse on the surface of a spheroid and centered on the origin, or the curve formed by intersecting the spheroid by a plane through its center. For points that are separated by less than about a quarter of the circumference of the earth, about , the length of the great ellipse connecting the points is close to the geodesic distance. The great ellipse therefore is sometimes proposed as a suitable route for marine navigation. The great ellipse is special case of an earth section path.

Vincenty's formulae are two related iterative methods used in geodesy to calculate the distance between two points on the surface of a spheroid, developed by Thaddeus Vincenty (1975a). They are based on the assumption that the figure of the Earth is an oblate spheroid, and hence are more accurate than methods that assume a spherical Earth, such as great-circle distance.

<span class="mw-page-title-main">Geodetic coordinates</span> Geographic coordinate system

Geodetic coordinates are a type of curvilinear orthogonal coordinate system used in geodesy based on a reference ellipsoid. They include geodetic latitude (north/south) ϕ, longitude (east/west) λ, and ellipsoidal heighth. The triad is also known as Earth ellipsoidal coordinates.

<span class="mw-page-title-main">Geodesics on an ellipsoid</span> Shortest paths on a bounded deformed sphere-like quadric surface

The study of geodesics on an ellipsoid arose in connection with geodesy specifically with the solution of triangulation networks. The figure of the Earth is well approximated by an oblate ellipsoid, a slightly flattened sphere. A geodesic is the shortest path between two points on a curved surface, analogous to a straight line on a plane surface. The solution of a triangulation network on an ellipsoid is therefore a set of exercises in spheroidal trigonometry.

<span class="mw-page-title-main">Stokes problem</span>

In fluid dynamics, Stokes problem also known as Stokes second problem or sometimes referred to as Stokes boundary layer or Oscillating boundary layer is a problem of determining the flow created by an oscillating solid surface, named after Sir George Stokes. This is considered one of the simplest unsteady problems that has an exact solution for the Navier–Stokes equations. In turbulent flow, this is still named a Stokes boundary layer, but now one has to rely on experiments, numerical simulations or approximate methods in order to obtain useful information on the flow.

<span class="mw-page-title-main">Earth section paths</span> Plane curved by the intersection of an earth ellipsoid and a plane

Earth section paths are plane curves defined by the intersection of an earth ellipsoid and a plane. Common examples include the great ellipse and normal sections. Earth section paths are useful as approximate solutions for geodetic problems, the direct and inverse calculation of geographic distances. The rigorous solution of geodetic problems involves skew curves known as geodesics.

References

  1. "The British Cartographic Society > How long is the UK coastline?". Archived from the original on 2012-05-22. Retrieved 2008-12-06.
  2. Williams, E. (2013). "Aviation Formulary" . Retrieved 2024-06-23.
  3. Williams, E. (2002). "Navigation on the spheroidal earth" . Retrieved 2023-11-28.
  4. "Reference points and distance computations" (PDF). Code of Federal Regulations (Annual Edition). Title 47: Telecommunication. 73 (208). October 1, 2016. Retrieved 8 November 2017.
  5. Clairaut, A. C. (1735). "Détermination géometrique de la perpendiculaire à la méridienne tracée par M. Cassini" [Geometrical determination of the perpendicular to the meridian drawn by Jacques Cassini]. Mémoires de l'Académie Royale des Sciences de Paris 1733 (in French): 406–416.
  6. Legendre, A. M. (1806). "Analyse des triangles tracées sur la surface d'un sphéroïde" [Analysis of spheroidal triangles]. Mémoires de l'Institut National de France (in French) (1st semester): 130–161.
  7. Bessel, F. W. (2010) [1825]. "The calculation of longitude and latitude from geodesic measurements". Astronomische Nachrichten. 331 (8). . Translated by C. F. F. Karney & R. E. Deakin: 852–861. arXiv: 0908.1824 . Bibcode:2010AN....331..852K. doi:10.1002/asna.201011352. S2CID   118760590.{{cite journal}}: CS1 maint: postscript (link)
  8. Helmert, F. R. (1964) [1880]. Mathematical and Physical Theories of Higher Geodesy. Vol. 1. St. Louis: Aeronautical Chart and Information Center.{{cite book}}: CS1 maint: postscript (link) English translation of Die Mathematischen und Physikalischen Theorieen der Höheren Geodäsie, Vol. 1 (Teubner, Leipzig, 1880).
  9. Rapp, R. H. (March 1993). Geometric Geodesy, Part II (Technical report). Ohio State University. Retrieved 2011-08-01.
  10. Vincenty, T. (April 1975). "Direct and Inverse Solutions of Geodesics on the Ellipsoid with application of nested equations" (PDF). Survey Review. 23 (176): 88–93. doi:10.1179/sre.1975.23.176.88 . Retrieved 2009-07-11. Addendum: Survey Review 23 (180): 294 (1976).{{cite journal}}: CS1 maint: postscript (link)
  11. Karney, C. F. F. (2013). "Algorithms for geodesics". Journal of Geodesy. 87 (1): 43–55. arXiv: 1109.4448 . Bibcode:2013JGeod..87...43K. doi:10.1007/s00190-012-0578-z. S2CID   119310141. – (open access). Addenda.
  12. Karney, C. F. F. (2013). "GeographicLib". 1.32.
  13. 1 2 3 Rapp, R, H (1991). Geometric Geodesy, Part I (Report). Ohio State Univ. hdl:1811/24333.{{cite report}}: CS1 maint: multiple names: authors list (link)
  14. 1 2 Bowring, B. R. (1981). "The direct and inverse problems for short geodesic lines on the ellipsoid". Surveying and Mapping. 41 (2): 135–141.
  15. Hubeny, K. (1954). Entwicklung der Gauss'schen Mittelbreitenformeln, Österreichische Zeitschrift für Vermessungswesen.
  16. Forsyth, A. R. (1927). Calculus of Variations. Cambridge Univ. Press. ISBN   978-1-107-64083-2. OCLC   250050479..
  17. Henri Andoyer: Formule donnant la longueur de la géodésique joignant 2 points de l’ellipsoïde donnés par leurs coordonnées géographiques, Bulletin Géodésique, Volume 34, Number 1, April 1932, pages 77–81, https://doi.org/10.1007%2FBF03030136
  18. 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.
  19. "GeographicLib: Geodesics on an ellipsoid of revolution". geographiclib.sourceforge.io. Retrieved 2024-08-04.
  20. "Archived copy" (PDF). Archived from the original (PDF) on 2014-08-27. Retrieved 2014-08-26.{{cite web}}: CS1 maint: archived copy as title (link)
  21. 1 2 Torge & Müller (2012) Geodesy, De Gruyter, p.249