use the haversine formula to compute distance between 2 locations
1 | gcd.hf(long1, lat1, long2, lat2)
|
http://www.r-bloggers.com/great-circle-distance-calculations-in-r/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.