Calculating distance in Kilometres and Miles from Latitude and Longitude


/ Published in: SQL
Save to your folder(s)

Using SQL you can have your database return the distance between 2 sets of Lat and Long points, and using some math functions also take into account the curvature of the earth.

URL: http://www.sixfive.co.uk/index.cfm/2007/4/9/Calculating-distance-in-Kilometres-and-Miles-from-Latitude-and-Longitude

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.