Description Usage Arguments Value References
Get the haversine distance between two points (x1, y1) and (x2, y2) scaled between 0 and 1.
1 | haversine(x1, y1, x2, y2)
|
x1 |
longitude of object 1 (vector) |
y1 |
latitude of object 1 (vector) |
x2 |
longitude of object 2 (vector) |
y2 |
latitude of object 2 (vector) |
numeric
http://andrew.hedges.name/experiments/haversine/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.