Search code examples
apigoogle-mapspolygonpoint-in-polygon

Check whether or not a point is in a polygon (Google Maps API)


So I have a map here

How can I, using Google Maps API, detect whether or not a given coordinate is within that polygon? Is that possible?

Thanks in advance.


Solution

  • Yes it is possible. See this function: http://github.com/tparkin/Google-Maps-Point-in-Polygon