Calculates the length of a Polyline.

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(
	IGeoPolyline line,
	Units unit
)

Return Value

Returns a Double value giving the distance between the Start and Finish of the Polyline.

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