Distance_Calc_fromString

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

CodeFunctionName
What is this?

Public

Tested

Original Work

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 Boldcodes.com

Linkedin Login

LatLon1, LatLon2, Optional Possible4

Views 3,340

Downloads 1,300

CodeID
DB ID

ANmarAmdeen
671
Attachments
Revisions

v1.0

Wednesday
June
27
2018