View source: R/ComputeDistance.R
ComputeDistance | R Documentation |
This function computes the distance between two geographical coordinates. These locations must be in decimal degrees.
ComputeDistance(Lat1, Lat2, Lon1, Lon2)
Lat1 |
the latitude of the first coordinate |
Lat2 |
the latitude of the second coordinate |
Lon1 |
the longitude of the first coordinate |
Lon2 |
the longitude of the second coordinate |
Coordinates are given in decimal degrees (WGS 84)
# Calculate the distance between two coordinates
ComputeDistance(-12.19506,-12.19477,141.8946,141.8980)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.