google.maps.geometry.poly namespace
Utility functions for computations involving polygons and polylines.
geometry
Static Methods
containsLocation(point, polygon)
Parameters:
Return Value: boolean
Computes whether the given point lies inside the specified polygon.
isLocationOnEdge(point, poly[, tolerance])
Parameters:
Return Value: boolean
Computes whether the given point lies on or near to a polyline, or the edge of a polygon, within a specified tolerance. Returns true when the difference between the latitude and longitude of the supplied point, and the closest point on the edge, is less than the tolerance. The tolerance defaults to 10-9 degrees.