code: public Query addInsidePolygon(float latitude, float longitude) {
      if (insidePolygon == null) {
        insidePolygon = "insidePolygon=" + latitude + "," + longitude;
      } else if (insidePolygon.length() > 14) {
        insidePolygon += "," + latitude + "," + longitude;
      }
      return this;
    }
docs: Add a point to the polygon of geo-search (requires a minimum of three points to define a valid polygon)
  At indexing, you should specify geoloc of an object with the _geoloc attribute (in the form "_geoloc":{"lat":48.853409, "lng":2.348800} or
  "_geoloc":[{"lat":48.853409, "lng":2.348800},{"lat":48.547456, "lng":2.972075}] if you have several geo-locations in your record).