Draw Polygons in Google Maps and Determine whether an Address is in Polygons
The server-side code will retrieve address’ latitude and longitude using Google Gecoding API.
Using “Point-In-Polygon” Algorithm, the server-side code will determine whether address’ coordinate is inside of polygons or outside.
===== How To Use =====
First, draw polygons
Second, search address and click “Check Inside/Outside Polygons” submit button
===== For Your Information =====
you can use google.maps.geometry.poly.containsLocation function in Google Maps API.
The address auto-complete (Google Places Library) returns address information including coordinate.
<em>* This sample source code made for self-study purpose. English or code structures may not be proper.