**Google Maps API gets clickable polylines and polygons**. Interesting explanation of how they optimised calculating the distance to the nearest point on a polyline.

**Google Maps API gets clickable polylines and polygons**. Interesting explanation of how they optimised calculating the distance to the nearest point on a polyline.