title: Check if Google Map Point is in polygon from PHP
body: <p>I've been looking for a way to check if a point is part of a polygon; this polygon is loaded from a file.</p>
  
  <p>All the answers related to this question are solved with javascript, but I require to do this on server-side; this because the result does not need to be shown to the user as a webclient, it needs to be stored and later be used as a parameter to select a group of users (that use the system) inside that area (polygon).</p>
  
  <p>I looked for a Google Maps API for PHP but it looks like it does not exists at all. I found <a href="http://www.bradwedell.com/php-google-maps-api/demos" rel="noreferrer">this one</a>, but it is not related to Google and also focuses on the front end.</p>
  
  <p>I also looked for a REST API; it would have been relatively easy to load the content to my php and parse it, but looks like Google put all its efforts on the JS API.</p>
  
  <p>Is there any workaround for this?</p>
  
  <p><strong>Edit 1</strong>: As @Spacedman requested, the file format is a KML</p>
  
  <p><strong>Clarification 1</strong>: I expected that Google provide a tool for this (as it exists with JS); parsing the file to check via an algorithm is a posibility and I'll have to check if it works properly.</p>