This function uses the haversine formula to calculate the great circle distance between two locations, identified by their latitudes and longitudes.
Arguments
- lat1
Latitude of the first location.
- long1
Longitude of the first location.
- lat2
Latitude of the second location.
- long2
Longitude of the second location.
- units
Units of the latitude and longitude values. Possible values are:
deg
: Degrees (default);rad
: Radians.
Author
Alex Simmons [email protected], Brooke Anderson [email protected]