Description Usage Arguments Details Value Examples
Calculates the Haversine distance between two points
| 1 2 | dtHaversine(latFrom, lonFrom, latTo, lonTo, r = earthsRadius(),
  tolerance = 1e+09)
 | 
| latFrom | latitude | 
| lonFrom | longitude | 
| latTo | latitude | 
| lonTo | latitude | 
| r | radius of earth | 
| tolerance | numeric. See details | 
tolerance - Floating-point precision can sometimes lead to the
situation 'sqrt(1 - 1.00000001)', which will introduce NAs into the result.
The tolerance value is used in 'ifelse(a > 1 & a <= tolerance, 1, a)'
distance in metres
| 1 2 3 4 5 6 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.