Description Usage Arguments Details Value Examples
Calculate the distance between two points as great circle distance on the globe
1 | great_circle_dist(x1, x2)
|
x1 |
coordinate pair 1, as list with $lat and $lon |
x2 |
coordinate pair 2, as list with $lat and $lon |
Uses information from http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates, where dist = arccos(sin(lat1) * sin(lat2) + cos(lat1) * cos(lat2) * cos(lon1 - lon2)) * R
The distance on the globe in kilometers.
1 2 | great_circle_dist(list(lon = 0.3, lat = 40.91), list(lon = 1.3,
lat = 41.02))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.