Compute Geodesic Distance between Earth surface Coordinates

Category:
Dates and Math
Type:
Snippets
Difficulty:
Intermediate

Author: Jay

Version Compatibility: Visual Basic 5

More information:
This function computes the geodesic surface distance between two cordinates on the surface of the Earth to an accuracy of about 50 meters. Instead of assuming the Earth to be a perfect sphere, this function takes into account the actual polar flattening of the earth and the equatorial bulge, which gives a much more accurate computation between the given coordinates.

The coordinates arguments are given in decimal degrees and the output distance may be returned in kilometers, statute miles or nautical miles.

For more information regarding usage, see the code's comments and the included readme file.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download geo_dist.zip