Great-circle distance
Great-circle distance function to calculate spatial distance from lat-long data. Called by various functions.
gcdist(x, y)
x
y
The distance in km is returned
Useful links