Calculates the distance between two lat/lng's in miles or meters.

Namespace: Lucene.Net.Spatial.Geometry
Assembly: Lucene.Net.Contrib.Spatial (in Lucene.Net.Contrib.Spatial.dll) Version: 2.9.1.2 (2.9.1.002)

Syntax

C#
public double ArcDistance(
	LatLng ll2,
	DistanceUnits lUnits
)
Visual Basic
Public Function ArcDistance ( _
	ll2 As LatLng, _
	lUnits As DistanceUnits _
) As Double
Visual C++
public:
double ArcDistance(
	LatLng^ ll2, 
	DistanceUnits lUnits
)

Parameters

ll2
Type: Lucene.Net.Spatial.Geometry..::..LatLng
Second lat,lng position to calculate distance to.
lUnits
Type: Lucene.Net.Spatial.Geometry..::..DistanceUnits
Units to calculate distance, defaults to miles

Return Value

Returns the distance in meters or miles

See Also