View source: R/meteo_distance.R
| meteo_spherical_distance | R Documentation | 
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")
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: 
  | 
A numeric value giving the distance (in kilometers) between the pair of locations.
This function assumes an earth radius of 6,371 km.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.