A polygon is specified as an array of points. The last point in the polygon is implicitly connected to the first.
To retrieve all content items that are placed within a polygon use the
withinPolygon(field, points) function:
var point1 = new Everlive.GeoPoint(23.317871, 42.687709); var point2 = new Everlive.GeoPoint(42.698749, 42.698749); var point3 = new Everlive.GeoPoint(23.331346, 42.702282); var query = new Everlive.Query(); query.where().withinPolygon("location", [point1, point2, point3]); // or var query = new Everlive.Query(); query.where().withinPolygon("location", [[23.317871, 42.687709], [42.698749, 42.698749], [23.331346, 42.702282]]);