powered by
Gives the "great circle" or "haversine" distance between pairs of lat/lng coordinates in kilometers.
greatCircleDistanceKm(aLat, aLng, bLat, bLng)
numeric vector giving the great circle distance in kilometres
vector of latitude cooridnates (from)
vector of longitude coordinates (from)
vector of latitude coordinates (to)
vector of longitude coordinates (to)
greatCircleDistanceKm( aLat = c(-37.820197) , aLng = c(144.983324) , bLat = c(-37.818476) , bLng = c(144.967354) )
Run the code above in your browser using DataLab