haversine | R Documentation |
Calculate the haversine distance between 2 points in metres, given lat/lon for each (in decimal degrees).
haversine(lon1, lat1, lon2, lat2)
lon1 |
Decimal longitude of first point (numeric value). |
lat1 |
Decimal latitude of first point (numeric value). |
lon2 |
Decimal longitude of second point (numeric value). |
lat2 |
Decimal latitude of second point (numeric value). |
Distance between the points (in metres).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.