Returns distance in meters between two lat/long coordinates using Haversine formula. More accurate but slower.

Namespace:  EGIS.ShapeFileLib
Assembly:  EGIS.ShapeFileLib (in EGIS.ShapeFileLib.dll)

Syntax

Visual Basic
Public Shared Function DistanceBetweenLatLongPointsHaversine ( _
	referenceEllipsoid As Integer, _
	origin As LatLongCoordinate, _
	destination As LatLongCoordinate _
) As Double
C#
public static double DistanceBetweenLatLongPointsHaversine(
	int referenceEllipsoid,
	LatLongCoordinate origin,
	LatLongCoordinate destination
)
Visual C++
public:
static double DistanceBetweenLatLongPointsHaversine(
	int referenceEllipsoid, 
	LatLongCoordinate origin, 
	LatLongCoordinate destination
)
JavaScript
EGIS.ShapeFileLib.ConversionFunctions.distanceBetweenLatLongPointsHaversine = function(referenceEllipsoid, origin, destination);

Parameters

referenceEllipsoid
Type: System..::..Int32
origin
Type: EGIS.ShapeFileLib..::..LatLongCoordinate
destination
Type: EGIS.ShapeFileLib..::..LatLongCoordinate

Return Value

See Also