Distance Calculation using Latitude and Longitude in C#

added by hexahow
3/23/2010 10:30:01 PM

748 Views

ZIPCodeWorld.com provides this routine to calculate the distance between two points (given the latitude/longitude of those points) in C#. It is being used to calculate distance between two points lat1, long1 and lat2, long2 and uses radius of earth in kilometers or miles as an arguments using our ZIPCodeWorld(TM) and PostalCodeWorld(TM) products which offer the United States ZIP codes, Canadian Postal Codes, Mexican Postal Codes and North American Area Codes database subscription and solution services.


1 comments

rgelb
3/25/2010 8:25:20 AM
Here is a native code version I used - was much faster than the C# version.

http://www.vbrad.com/article.aspx?id=69