Calculate distance between two points (Latitude, Longitude)
LatLon1 and LatLon2 can be either Lat,Lon or Lon,Lat
Possible4 is to make sure that function calculates all those possible scenarios
"Lat1,Lon1" + "Lat2,Lon2"
"Lon1,Lat1" + "Lon2,Lat2"
"Lat1,Lon1" + "Lat2,Lon2"
"Lon1,Lat1" + "Lon2,Lat2"
if you sure it is Lat1,Lon1 and Lat2,Lon2, pass Possible4 as 0 to make function faster
Returns meters between those two points, or
-1 if could not read LatLon
0 if exact same LatLon
10k meters if it is more than 10k
Access is limited.
Login here using your Linkedin account. to see or download code.
No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Mydevlib.com
Linkedin LoginLatLon1, LatLon2, Optional Possible4
Views 3,340
Downloads 1,300
CodeID
DB ID