powered by
Calculate distance between a pair of coordinates
latlon2dist (coords)
Returns the great circle distance distance between the pair of coordinates
4-element vector of coordinates with format: (lat1, lon1, lat2, lon2)
(lat1, lon1, lat2, lon2)
Tarik C. Gouhier (tarik.gouhier@gmail.com)
coord2dist
coords=c(32, -125, 43, -130) # Compute great circle distance latlon2dist(coords)
Run the code above in your browser using DataLab