The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function SphereGreatCircleDist (radius, Lat1, Long1, Lat2, Long2: double): double;

The procedure SphereGreatCircleDist calculates the distance along the great circle of a sphere of radius radius between the locations Lat1/Long1 and Lat2/Long2. The latitudes and longitudes have to be specified in degrees, the result is based on the same units as the parameter radius.

Hint: The function SphereGreatCircleDist always calculates the shortest path along the sphere. This has to be considered if one wants to calculate the length of the great circle "the other way round".

Last Update: 2014-Aug-15