Get the distance in kilometers between two points
get_distances(lat1, long1, lat2, long2, R = 6371)
A numeric vector with the distance in kilometers.
#' source: https://github.com/gustavobio/brclimate/blob/master/R/get_distances.R
Latitude in decimals
Longitude in decimals
Latitude in decimals
Longitude in decimals
Radius of the earth in kmdescription (R=6371)