powered by
This function uses the haversine formula to calculate the great circle distance between two locations, identified by their latitudes and longitudes.
meteo_spherical_distance(lat1, long1, lat2, long2, units = "deg")
A numeric value giving the distance (in kilometers) between the pair of locations.
Latitude of the first location.
Longitude of the first location.
Latitude of the second location.
Longitude of the second location.
Units of the latitude and longitude values. Possible values are:
deg: Degrees (default);
deg
rad: Radians.
rad
Alex Simmons a2.simmons@qut.edu.au, Brooke Anderson brooke.anderson@colostate.edu
meteo_spherical_distance(lat1 = -27.4667, long1 = 153.0217, lat2 = -27.4710, long2 = 153.0234)
Run the code above in your browser using DataLab