algoliasearch/src/main/java/com/algolia/search/saas/Query.java
public @NonNull
    Query setInsidePolygon(@Nullable Polygon... polygons) {
        String insidePolygon = null;
        if (polygons == null) {
            insidePolygon = null;
        } else if (polygons.length == 1) {
            insidePolygon = polygons[0].toString();
        } else {
            for (Polygon polygon : polygons) {
                String polygonStr = "[" + polygon + "]";
                if (insidePolygon == null) {
                    insidePolygon = "[";
                } else {
                    insidePolygon += ",";
                }
                insidePolygon += polygonStr;
            }
            insidePolygon += "]";
        }
        set(KEY_INSIDE_POLYGON, insidePolygon);
        return this;
    }
public @NonNull
    Query setInsidePolygon(@Nullable Polygon... polygons) {
        String insidePolygon = null;
        if (polygons == null) {
            insidePolygon = null;
        } else if (polygons.length == 1) {
            insidePolygon = polygons[0].toString();
        } else {
            for (Polygon polygon : polygons) {
                String polygonStr = "[" + polygon + "]";
                if (insidePolygon == null) {
                    insidePolygon = "[";
                } else {
                    insidePolygon += ",";
                }
                insidePolygon += polygonStr;
            }
            insidePolygon += "]";
        }
        set(KEY_INSIDE_POLYGON, insidePolygon);
        return this;
    }
Search for entries inside a given area defined by several polygons.