After researching deeper on this topic, I found what I was looking for!, I could use the ray-casting algorithm to spot a point(coordinates) inside a polygon, the polygon's coordinates I can easily get from Google maps, In essence what I will be doing is:
- Make a Google maps area selector to build polygons.
- Save polygons point coordinates array to database.(as service region/area)
- Geo-Code customers addresses and save to DB as well (First time will pull from Google maps and save on DB for future use). 4.Use the Ray-Casting Algorithm to loop through all the "polygons" until it returns true and we would know to what polygon the address belongs to, if it returns false then we know we don't service that area.
References: