Calculate the surface distance in kilometres from this LatLng to the given LatLng.

Namespace:  DotNetCoords
Assembly:  DotNetCoords (in DotNetCoords.dll) Version: 1.0.0.1 (1.0.0.1)

Syntax

C#
public double Distance(
	LatLng ll
)
Visual Basic (Declaration)
Public Function Distance ( _
	ll As LatLng _
) As Double
Visual C++
public:
double Distance(
	LatLng^ ll
)

Parameters

ll
Type: DotNetCoords..::.LatLng
The LatLng object to measure the distance to..

Return Value

The surface distance in kilometres.

See Also