SQL

How to calculate the distance in calculate the distance in miles between 2 latitude/longitude points.

I have just had the requirement to calculate the distance between 2 locations for a client project. At first I was going down the route of rolling my own within the C# domain model and then I found this amazing piece of code in the form of an SQL function (sql server 2000/20005) courtesy of Troy DeMonbreun

posted @ Thursday, January 17, 2008 10:24 PM | Feedback (1)