GreatCircle

Powered by mwgg/GreatCircle. Check it out on GitHub!

A set of three functions, useful in geographical calculations of different sorts. Available for PHP, Python and Javascript.


Distance between two sets of coordinates

Takes two sets of geographic coordinates in decimal degrees and produces distance along the great circle line.

Point A:
Point B:

0 kilometers

0 miles

0 nautical miles

0 yards

0 feet


Bearing (azimuth) between two sets of coordinates

Takes two sets of geographic coordinates in decimal degrees and produces bearing (azimuth) from the first set of coordinates to the second set.

From:
To:

0 degrees


Destination

Takes one set of geographic coordinates in decimal degrees, azimuth and distance to produce a new set of coordinates, specified distance and bearing away from original.

Coordinates:
Bearing:

Lat: 0

Lon: 0