Description Usage Arguments Value Examples
View source: R/geotagging_functions.R
geodesic.distance
calculates the great-circle distance between two points
1 | geodesic.distance(lon1, lat1, lon2, lat2)
|
lon1 |
Longititude of point 1 |
lat1 |
Latitude ot point 1 |
lon2 |
Longititude of point 2 |
lat2 |
Latitude ot point 2 |
Distance in meters
1 2 3 4 | # Distance from Toronto to Ottawa in m
dist_otttor <- geodesic.distance(-75.695000, 45.424721, -79.347015, 43.651070)
# in km
dist_ottor / 1000
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.