- Source: 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 sphere. (By comparison, the shortest path passing through the sphere's interior is the chord between the points.)
On a curved surface, the concept of straight lines is replaced by a more general concept of geodesics, curves which are locally straight with respect to the surface. Geodesics on the sphere are great circles, circles whose center coincides with the center of the sphere.
Any two distinct points on a sphere that are not antipodal (diametrically opposite) both lie on a unique great circle, which the points separate into two arcs; the length of the shorter arc is the great-circle distance between the points. This arc length is proportional to the central angle between the points, which if measured in radians can be scaled up by the sphere's radius to obtain the arc length. Two antipodal points both lie on infinitely many great circles, each of which they divide into two arcs of length π times the radius.
The determination of the great-circle distance is part of the more general problem of great-circle navigation, which also computes the azimuths at the end points and intermediate way-points. Because the Earth is nearly spherical, great-circle distance formulas applied to longitude and geodetic latitude of points on Earth are accurate to within about 0.5%.
Formulae
Let
λ
1
,
ϕ
1
{\displaystyle \lambda _{1},\phi _{1}}
and
λ
2
,
ϕ
2
{\displaystyle \lambda _{2},\phi _{2}}
be the geographical longitude and latitude of two points 1 and 2, and
Δ
λ
,
Δ
ϕ
{\displaystyle \Delta \lambda ,\Delta \phi }
be their absolute differences; then
Δ
σ
{\displaystyle \Delta \sigma }
, the central angle between them, is given by the spherical law of cosines if one of the poles is used as an auxiliary third point on the sphere:
Δ
σ
=
arccos
(
sin
ϕ
1
sin
ϕ
2
+
cos
ϕ
1
cos
ϕ
2
cos
Δ
λ
)
.
{\displaystyle \Delta \sigma =\arccos {\bigl (}\sin \phi _{1}\sin \phi _{2}+\cos \phi _{1}\cos \phi _{2}\cos \Delta \lambda {\bigr )}.}
The problem is normally expressed in terms of finding the central angle
Δ
σ
{\displaystyle \Delta \sigma }
. Given this angle in radians, the actual arc length d on a sphere of radius r can be trivially computed as
d
=
r
Δ
σ
.
{\displaystyle d=r\,\Delta \sigma .}
Relation between central angle and chord length
The central angle
Δ
σ
{\displaystyle \Delta \sigma }
is related with the chord length of unit sphere
Δ
σ
c
{\displaystyle \Delta \sigma _{\text{c}}\,\!}
:
Δ
σ
=
2
arcsin
Δ
σ
c
2
,
Δ
σ
c
=
2
sin
Δ
σ
2
.
{\displaystyle {\begin{aligned}\Delta \sigma &=2\arcsin {\frac {\Delta \sigma _{\text{c}}}{2}},\\\Delta \sigma _{\text{c}}&=2\sin {\frac {\Delta \sigma }{2}}.\end{aligned}}}
For short-distance approximation (
|
Δ
σ
c
|
≪
1
{\displaystyle |\Delta \sigma _{\text{c}}|\ll 1}
),
Δ
σ
=
Δ
σ
c
(
1
+
1
24
(
Δ
σ
c
)
2
+
⋯
)
.
{\displaystyle \Delta \sigma =\Delta \sigma _{\text{c}}\left(1+{\frac {1}{24}}\left(\Delta \sigma _{\text{c}}\right)^{2}+\cdots \right).}
= Computational formulae
=On computer systems with low floating point precision, the spherical law of cosines formula can have large rounding errors if the distance is small (if the two points are a kilometer apart on the surface of the Earth, the cosine of the central angle is near 0.99999999). For modern 64-bit floating-point numbers, the spherical law of cosines formula, given above, does not have serious rounding errors for distances larger than a few meters on the surface of the Earth. The haversine formula is numerically better-conditioned for small distances by using the chord-length relation:
Δ
σ
=
archav
(
hav
(
Δ
ϕ
)
+
(
1
−
hav
(
Δ
ϕ
)
−
hav
(
ϕ
1
+
ϕ
2
)
)
hav
(
Δ
λ
)
)
.
{\displaystyle {\begin{aligned}\Delta \sigma &=\operatorname {archav} \left(\operatorname {hav} \left(\Delta \phi \right)+\left(1-\operatorname {hav} (\Delta \phi )-\operatorname {hav} (\phi _{1}+\phi _{2})\right)\operatorname {hav} \left(\Delta \lambda \right)\right).\end{aligned}}}
Historically, the use of this formula was simplified by the availability of tables for the haversine function:
hav
θ
=
sin
2
θ
2
{\displaystyle \operatorname {hav} \theta =\sin ^{2}{\frac {\theta }{2}}}
and
archav
x
=
2
arcsin
x
{\displaystyle \operatorname {archav} x=2\arcsin {\sqrt {x}}}
.
The following shows the equivalent formula expressing the chord length explicitly:
Δ
σ
c
=
2
sin
2
(
Δ
ϕ
2
)
+
cos
ϕ
1
⋅
cos
ϕ
2
⋅
sin
2
(
Δ
λ
2
)
,
=
2
(
sin
Δ
λ
2
cos
ϕ
m
)
2
+
(
cos
Δ
λ
2
sin
Δ
ϕ
2
)
2
,
{\displaystyle {\begin{aligned}\Delta \sigma _{\text{c}}&=2{\sqrt {\sin ^{2}\left({\frac {\Delta \phi }{2}}\right)+\cos {\phi _{1}}\cdot \cos {\phi _{2}}\cdot \sin ^{2}\left({\frac {\Delta \lambda }{2}}\right)}}\ ,\\&=2{\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{aligned}}}
where
ϕ
m
=
1
2
(
ϕ
1
+
ϕ
2
)
{\displaystyle \phi _{\text{m}}={\tfrac {1}{2}}(\phi _{1}+\phi _{2})}
.
Although this formula is accurate for most distances on a sphere, it too suffers from rounding errors for the special (and somewhat unusual) case of antipodal points. A formula that is accurate for all distances is the following special case of the Vincenty formula for an ellipsoid with equal major and minor axes:
Δ
σ
=
atan2
(
(
cos
ϕ
2
sin
Δ
λ
)
2
+
(
cos
ϕ
1
sin
ϕ
2
−
sin
ϕ
1
cos
ϕ
2
cos
Δ
λ
)
2
,
sin
ϕ
1
sin
ϕ
2
+
cos
ϕ
1
cos
ϕ
2
cos
Δ
λ
)
,
{\displaystyle {\begin{aligned}\Delta \sigma ={\operatorname {atan2} }{\Bigl (}&{\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}}},\\&\quad {\sin \phi _{1}\sin \phi _{2}+\cos \phi _{1}\cos \phi _{2}\cos \Delta \lambda }{\Bigr )},\end{aligned}}}
where
atan2
(
y
,
x
)
{\displaystyle \operatorname {atan2} (y,x)}
is the two-argument arctangent. Using atan2 ensures that the correct quadrant is chosen.
= Vector version
=Another representation of similar formulas, but using normal vectors instead of latitude and longitude to describe the positions, is found by means of 3D vector algebra, using the dot product, cross product, or a combination:
Δ
σ
=
arccos
(
n
1
⋅
n
2
)
=
arcsin
|
n
1
×
n
2
|
=
arctan
|
n
1
×
n
2
|
n
1
⋅
n
2
{\displaystyle {\begin{aligned}\Delta \sigma &=\arccos \left(\mathbf {n} _{1}\cdot \mathbf {n} _{2}\right)\\&=\arcsin \left|\mathbf {n} _{1}\times \mathbf {n} _{2}\right|\\&=\arctan {\frac {\left|\mathbf {n} _{1}\times \mathbf {n} _{2}\right|}{\mathbf {n} _{1}\cdot \mathbf {n} _{2}}}\\\end{aligned}}}
where
n
1
{\displaystyle \mathbf {n} _{1}}
and
n
2
{\displaystyle \mathbf {n} _{2}}
are the normals to the sphere at the two positions 1 and 2. Similarly to the equations above based on latitude and longitude, the expression based on arctan is the only one that is well-conditioned for all angles. The expression based on arctan requires the magnitude of the cross product over the dot product.
= From chord length
=A line through three-dimensional space between points of interest on a spherical Earth is the chord of the great circle between the points. The central angle between the two points can be determined from the chord length. The great circle distance is proportional to the central angle.
The great circle chord length,
Δ
σ
c
{\displaystyle \Delta \sigma _{\text{c}}\,\!}
, may be calculated as follows for the corresponding unit sphere, by means of Cartesian subtraction:
Δ
X
=
cos
ϕ
2
cos
λ
2
−
cos
ϕ
1
cos
λ
1
;
Δ
Y
=
cos
ϕ
2
sin
λ
2
−
cos
ϕ
1
sin
λ
1
;
Δ
Z
=
sin
ϕ
2
−
sin
ϕ
1
;
Δ
σ
c
=
(
Δ
X
)
2
+
(
Δ
Y
)
2
+
(
Δ
Z
)
2
.
{\displaystyle {\begin{aligned}\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};\\\Delta \sigma _{\text{c}}&={\sqrt {(\Delta {X})^{2}+(\Delta {Y})^{2}+(\Delta {Z})^{2}}}.\end{aligned}}}
Substituting
λ
1
=
−
1
2
Δ
λ
{\displaystyle \lambda _{1}=-{\tfrac {1}{2}}\Delta \lambda }
and
λ
2
=
1
2
Δ
λ
{\displaystyle \lambda _{2}={\tfrac {1}{2}}\Delta \lambda }
this formula can be algebraically manipulated to the form shown above in § Computational formulae.
Radius for spherical Earth
The shape of the Earth closely resembles a flattened sphere (a spheroid) with equatorial radius
a
{\displaystyle a}
of 6378.137 km; distance
b
{\displaystyle b}
from the center of the spheroid to each pole is 6356.7523142 km. When calculating the length of a short north-south line at the equator, the circle that best approximates that line has a radius of
b
2
a
{\textstyle {\frac {b^{2}}{a}}}
(which equals the meridian's semi-latus rectum), or 6335.439 km, while the spheroid at the poles is best approximated by a sphere of radius
a
2
b
{\textstyle {\frac {a^{2}}{b}}}
, or 6399.594 km, a 1% difference. So long as a spherical Earth is assumed, any single formula for distance on the Earth is only guaranteed correct within 0.5% (though better accuracy is possible if the formula is only intended to apply to a limited area). Using the mean Earth radius,
R
1
=
1
3
(
2
a
+
b
)
≈
6371.009
km
{\textstyle R_{1}={\frac {1}{3}}(2a+b)\approx 6371.009{\text{ km}}}
(for the WGS84 ellipsoid) means that in the limit of small flattening, the mean square relative error in the estimates for distance is minimized.
For distances smaller than 500 kilometers and outside of the poles, a Euclidean approximation of an ellipsoidal Earth (FCC's formula) is both simpler and more accurate (to 0.1%).
See also
References and notes
External links
GreatCircle at MathWorld
Kata Kunci Pencarian:
- Perth, Australia Barat
- Darwin, Wilayah Utara
- Gold Coast, Queensland
- Melbourne
- Canberra
- Bandar Udara Internasional Moshoeshoe I
- Ikan zebra
- Haruki Murakami
- Michael Schumacher
- Daftar julukan kota di Amerika Serikat
- Great-circle distance
- Great circle
- Great-circle navigation
- Longest flights
- Flight length
- Haversine formula
- World's longest domestic flight
- Distance
- Mercator projection
- Euclidean distance