Description Usage Arguments Value
Find the distance between locations specified by latitude/longitude in degrees.
1 | earth.dist(locs, dist = TRUE)
|
locs |
a matrix of locations, each row specifying two locations to find the distance between. The first two columns are the "from" longitude and latitude, respectively; the third and fourth columns are the "from" longitude and latitude, respectively. |
dist |
logical: return the distances as a |
either a matrix or a distance matrix containing the distances between all the points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.