Click or drag to resize

MathUtilGreatCircle Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Calculate the distance (in radians) between 2 latitude/longitude pairs over the surface of a sphere.

Namespace:  Telogis.GeoBase
Assembly: (in Version:
public static double GreatCircle(
	double lat1,
	double lon1,
	double lat2,
	double lon2


Type: SystemDouble
latitude 1 in radians
Type: SystemDouble
longitude 1 in radians
Type: SystemDouble
latitude 2 in radians
Type: SystemDouble
longitude 2 in radians

Return Value

Type: Double
The distance over the surface of a sphere between the latitude/longitude pairs.
A great circle is a circle drawn around the surface of a sphere. Both sphere and circle share the same center, and for any two given points (the latitude/longitude pairs) on the sphere's surface there is a unique great circle. The smallest arc between the two points on the great circle describes the shortest distance between the two points.
See Also