Javascript function to check if a point(x,y) or (lat,long) is in a polygon or not.
This is an implementation of Ray Casting Algorithm. More information about it here : https://en.wikipedia.org/wiki/Point_in_polygon
Please feel free to contact me for any question : lilian_alvarez_8@hotmail.com