Calculates the closest LatLng on a Polyline from a given location.

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 ICoordinates ClosestPointOnLine(
	ICoordinates point,
	Polygon shape,
	bool closeShape
)

Parameters

point
Type: Reimers.Core.Maps..::..ICoordinates
The given location.
shape
Type: Reimers.Google.Map..::..Polygon
The Polyline to measure to.
closeShape
Type: System..::..Boolean
Indicates whether a line should be closed.

Return Value

A LatLng.

See Also