Click or drag to resize

EAPUtilCalcLatLongDistance Method

Calculate the distance between two points on Earth expressed in lattitude and longitude.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static double CalcLatLongDistance(
	double lat1,
	double long1,
	double lat2,
	double long2
)

Parameters

lat1
Type: SystemDouble
The lattitude of the first point.
long1
Type: SystemDouble
The longitude of the first point.
lat2
Type: SystemDouble
The lattitude of the second point.
long2
Type: SystemDouble
The longitude of the second point.

Return Value

Type: Double
The distance between the two points, in miles.
Remarks
The distance is the theoretical straight-line distance between the points. It does not take altitide into account.
See Also