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,
	Polyline line
)

Parameters

point
Type: Reimers.Core.Maps..::..ICoordinates
The given location.
line
Type: Reimers.Google.Map..::..Polyline
The Polyline to measure to.

Return Value

A LatLng.

See Also