找出给定点是否在“多边形区域”内 - Google Maps API

I'm working on a web project where the idea is: users (A) can define an address each with the help of GoogleMaps API and with that i can get the coordenates and store them in database. Then other users (B) can design a polygon area on a map, again with GoogleMaps API, they would submit that area, and with that value the page would be able to find if there is any user (A) in that area.

How can i do it or where can i find information about this specific matter?

The Google Maps API v3 geometry library now includes the poly namespace, which has a containsLocation method:

containsLocation(point:LatLng, polygon:Polygon)
boolean
Computes whether the given point lies inside the specified polygon.

pass it a reference to the point and the polygon and it will tell you whether the polygon contains the point.

To compute the bounds of a polygon, iterate over the points in all its paths (can be simplified if you know it only has one path), adding them to a bounds object with google.maps.LatLngBounds.extend()