latlond.hav | R Documentation |
calculate the haversine distance between two geographic coordiantes
latlond.hav(lat1, lon1, lat2, lon2)
lat1, lon1 |
start coordinates (can be vectors) |
lat2, lon2 |
end coordinates (can be vectors) |
uses 6371 as the radius of the earth in kilometers.
distance in kilometers
https://www.movable-type.co.uk/scripts/latlong.html
Other distance functions:
torad()
latlond.hav(-6.72, 147, -4.67, -174.52)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.