View source: R/distance_greatcircle.R
distance_greatcircle | R Documentation |
Calculate the great-circle distance between two lat/lon points
distance_greatcircle(lat1, lon1, lat2, lon2)
lat1 |
numeric; starting latitude coordinate(s) |
lon1 |
numeric; starting longitude coordinate(s) |
lat2 |
numeric; ending latitude coordinate(s) |
lon2 |
numeric; ending longitude coordinate(s) |
Distance in kilometers between lat1/lon1 and lat2/lon2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.