Description Usage Arguments Value Author(s) Examples
haversine uses the Haversine formula to calculate the great circle distance between two pairsa of lat-lon values. No projection is used so this is only useful for points close together on the Earth's surface. In addition, it uses a NASA estimate of the volumetric radius of the Earth (6371). The radius estimate at the equator is 6378.137 and that of the polar radius is 6356.752. It produces a vector of all three of these values.
1 | haversine(lat1, lon1, lat2, lon2)
|
lat1 |
The first latitude in decimal degrees |
lon1 |
The first longitude in decimal degrees |
lat2 |
The second latitude in decimal degrees |
lon2 |
The second longitude in decimal degrees |
a matrix of the polar, volumetric, and equatorial distances in km
Dr Malcolm Haddon
1 | haversine(-43.31, 145.76, -43.19, 145.87) #16.09593, 16.132, 16.15007
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.