distVincentyEllipsoid(p1, p2, a=6378137, b=6356752.3142, f=1/298.257223563)
ellipsoid
a
b
f
WGS84
6378137
6356752.3142
1/298.257223563
GRS80
6378137
6356752.3141
1/298.257222101
GRS67
6378160
6356774.719
1/298.25
Airy 1830
6377563.396
6356256.909
1/299.3249646
Bessel 1841
6377397.155
6356078.965
1/299.1528434
Clarke 1880
6378249.145
6356514.86955
1/293.465
Clarke 1866
6378206.4
6356583.8
1/294.9786982
International 1924
6378388
6356911.946
1/297
Krasovsky 1940
6378245
6356863
1/298.2997381
}
a
is the 'semi-major axis', and b
is the 'semi-minor axis' of the ellipsoid. f
is the flattening.
Note that f = (a-b)/a
more info: distVincentySphere, distHaversine, distCosine, distMeeus
distVincentyEllipsoid(c(0,0),c(90,90))
# on a 'Clarke 1880' ellipsoid
distVincentyEllipsoid(c(0,0),c(90,90), a=6378249.145, b=6356514.86955, f=1/293.465)
Run the code above in your browser using DataLab