closestPoint

public Location closestPoint(PatrolOrigin origin, Location location)

Returns the closest point on the route polyline, including LOOP's closing segment.