Calculate distance between two points using Latitude and Longitude
Just pass the values for Latitude and Longitude, with an optional param km/miles, and get distance between two points on the earth.
lat1
: Latitude of Point 1
lat2
: Latitude of Point 2
long1
: Longitude of Point 1
long2
: Longitude of Point 2
unit
: Default: K (K: Kilometar, M: Miles, N: Nautical Miles)
sdf