In The Hand LtdIn The Hand
GetDistanceTo Method (other)
NamespacesInTheHand.Device.LocationGeoCoordinateGetDistanceTo(GeoCoordinate)
.NET Components for Mobility
Returns the distance between the latitude/longitude coordinate specified by this GeoCoordinate and another specified GeoCoordinate.
Declaration Syntax
C#Visual Basic
public double GetDistanceTo(
	GeoCoordinate other
)
Public Function GetDistanceTo ( _
	other As GeoCoordinate _
) As Double
Parameters
other (GeoCoordinate)
The GeoCoordinate for the location to calculate the distance to.
Return Value
The distance between the two coordinates, in meters.
Remarks
The Haversine formula is used to calculate the distance. The Haversine formula accounts for the curvature of the earth, but assumes a spherical earth rather than an ellipsoid. For long distances, the Haversine formula introduces an error of less than 0.1 percent.

Altitude is not used to calculate the distance.

Assembly: InTheHand.Device (Module: InTheHand.Device) Version: 7.0.0.0