From https://developers.google.com/maps/articles/phpsqlsearch_v3