Description Usage Arguments Value Examples
Returns the distance between two sets of coordinates in miles
1 | haversineDistance(lat1, long1, lat2, long2)
|
lat1 |
Double latitude for first coordinate |
long1 |
Double longitude for first coordinate |
lat2 |
Double latitude for second coordinate |
long2 |
Double longitude for second coordinate |
(Double) miles between two points
1 2 3 4 5 6 7 8 9 10 | ## Not run:
lat1 <- 38.8977
long1 <- 77.0365
lat2 <- 40.7484
long2 <- 73.9857
d <- haversineDistance(lat1, long1, lat2, long2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.