powered by
This function computes the distance between two geographical coordinates. These locations must be in decimal degrees.
ComputeDistance(Lat1, Lat2, Lon1, Lon2)
the latitude of the first coordinate
the latitude of the second coordinate
the longitude of the first coordinate
the longitude of the second coordinate
Coordinates are given in decimal degrees (WGS 84)
# NOT RUN { # Calculate the distance between two coordinates ComputeDistance(-12.19506,-12.19477,141.8946,141.8980) # }
Run the code above in your browser using DataLab