Created
September 29, 2014 14:48
-
-
Save tonyblundell/c25af3cbb945a4b0aedc to your computer and use it in GitHub Desktop.
SQL lat/long distance(mi) calc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3959 * ACOS(COS(RADIANS(lat1)) * COS(RADIANS(lat2)) * | |
COS(RADIANS(long2) - RADIANS(long1)) + | |
SIN(RADIANS(lat1)) * SIN(RADIANS(lat2))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment