Pairwise spatial distances
get_spatial_distance.RdComputes pairwise Euclidean distances between locations, in the units of
the coordinates. No great-circle correction is applied: with raw
longitude/latitude degrees, one degree of longitude shrinks with latitude,
so for large or high-latitude extents project the coordinates first (e.g.
to km) and interpret length_scale in those units.