Calculates the distance between 2 LatLng in the unit selected.

Namespace: Reimers.Google.Map.Accessories
Assembly: Reimers.Google.Map (in Reimers.Google.Map.dll) Version: 5.3.95.699 (5.3.95.699)

Syntax

C#
public static double Distance(
	ICoordinates start,
	ICoordinates finish,
	Units unit
)

Return Value

Returns a Double value giving the distance between the Start and Finish LatLng

Remarks

The distance is calculated as the length of a great circle between 2 point. The distance calculation is based on the mean radius of the Earth. As such the calculation is not accurate for all points of the Earth. The distance should be used only as an indication and should never be used in navigation.

See Also