im working on a project in which I need to store some google maps polygons in a database. By now, I get the polygon's vertex and save it in an array. Then I format the array into JSON and store it as a string in a database.
The next thing I have to do is to find the polygon that contains a certain location. Google maps javascript API has a function that return if some point is contained into a polygon, but I have to do it on server side (PHP).
¿Any suggestions for how to store the data in DB and how to check which polygon contains a point (latitude, longitude) on server side?
Thank you, and sorry about my English.