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, _
originLatitude As Double, _
originLongitude As Double, _
destinationLatitude As Double, _
destinationLongitude As Double _
) As Double |
C# |
---|
public static double DistanceBetweenLatLongPointsHaversine(
int referenceEllipsoid,
double originLatitude,
double originLongitude,
double destinationLatitude,
double destinationLongitude
) |
Visual C++ |
---|
public:
static double DistanceBetweenLatLongPointsHaversine(
int referenceEllipsoid,
double originLatitude,
double originLongitude,
double destinationLatitude,
double destinationLongitude
) |
JavaScript |
---|
EGIS.ShapeFileLib.ConversionFunctions.distanceBetweenLatLongPointsHaversine = function(referenceEllipsoid, originLatitude, originLongitude, destinationLatitude, destinationLongitude); |
Parameters
- referenceEllipsoid
- Type: System..::..Int32
- originLatitude
- Type: System..::..Double
- originLongitude
- Type: System..::..Double
- destinationLatitude
- Type: System..::..Double
- destinationLongitude
- Type: System..::..Double
Return Value
See Also