Get great circle distance between spatial points, defined by a vector of longitudes and latitudes. Distances are returned in a pairwise distance matrix.

get_spatial_distance(long, lat)

Arguments

long, lat

vector of longitudes and latitudes.