Description Usage Arguments Value
Calculate great-circle distances based on the haversin formula
1 | dist.gc(lon1, lon2, lat1, lat2)
|
lon1 |
Vector of longitudes (in degrees) |
lon2 |
Vector of longitudes (in degrees) |
lat1 |
Vector of latitudes (in degrees) |
lat2 |
Vector of latitudes (in degrees) |
Vector of distances (in km) between points
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.