by Jay Tanner (8 Submissions)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
PROGRAM NAME: Geo_Dist
VERSION: v2.0
PURPOSE & DESCRIPTION
This program computes the geodesic surface distance between two locations on the surface of the Earth to an accuracy of about ±50 meters.
Instead of assuming the Earth to be a perfect sphere, this program 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 degrees minutes and seconds and the computed distance may be returned in kilometers, statute miles or nautical miles.
Inputs
Latitude and longitude of any two locations.
Assumes
N/A
Code Returns
Distance between the two locations in kilimeters, statute miles or nautical miles.
Side Effects
N/A
API DeclarationsN/A
Download GeoDistv2 (9 KB)