Calculates the distance between a LatLng and a Polygon.

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 point,
	Polygon shape,
	Units unit
)

Parameters

point
Type: Reimers.Core.Maps..::..ICoordinates
The LatLng to calculate the distance from.
shape
Type: Reimers.Google.Map..::..Polygon
The Polygon to calculate the distance to.
unit
Type: Reimers.Core.Maps..::..Units
The Units to measure the distance in.

Return Value

A Double value.

See Also