Google Maps search for a point inside a polygon


Given a point and a polygon drawn on the map, you can find out if this point is in the polygon drawn.
In the source code of this page ptorai see the js used, while the script of a reference point inside a polygon is this:

Select a point

Area: 0 m2

Draw a polygon