DistanceOnEarth

delphimoon

DistanceOnEarth

Algorithms

Top  Previous  Next

 

Calculates the distance between two points on the earth

 

function DistanceOnEarth(latitude1, longitude1, latitude2, longitude2:extended):extended;

 

Description

Calculates the distance between two geographical coordinates on the earth globe, including the effect of the flatness of the earth. The value is given in kilometers.

 

The latitude is negative for the southern hemisphere and positive for the northern hemisphere; the longitude is positive for points west of Greenwich, negative for points east, and all given in degrees.

 

Reference

This function is based upon chapter 11 (10) of "Astronomical Algorithms".