Calculate the bearing in degrees clockwise from True North between any two
points on the globe.
Usage
earth.bear(long1, lat1, long2, lat2)
Arguments
long1
Longitude of site 1
lat1
Latitude of site 1
long2
Longitude of site 2
lat2
Latitude of site 2
Value
Returns a value in degrees from True North between two geographic points.
Details
Calculate the bearing in degrees clockwise from True North between any two
points on the globe. Primarily designed to be used with other included
geographic tools.
References
Haversine formula from Math Forums: Ask Dr. Math at http://mathforum.org/dr.math/