Jump to content

Great-circle distance

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by JeremyCole (talk | contribs) at 06:02, 26 November 2003. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

"Great circle distance" is the distance between any two points on a sphere.

It is commonly used to find the distance (e.g. in miles) between two coordinates (latitude/longitude pairs) on a map.

latitude is longitude is

The formula is:

dlon = <math>\lambda\sub{2}</math - lon1
dlat = lat2 - lat1
a = (sin(dlat/2))^2 + cos(lat1) * cos(lat2) * (sin(dlon/2))^2
c = 2 * arcsin(min(1,sqrt(a)))
d = R * c