whereWithinPolygon method

void whereWithinPolygon (String key, List<ParseGeoPoint> points)

Adds a constraint to the query that requires a particular key's coordinates be contained within and on the bounds of a given polygon. Supports closed and open (last point is connected to first) paths

Polygon must have at least 3 points

Implementation

void whereWithinPolygon(String key, List<ParseGeoPoint> points) {
  _addCondition(key, "whereWithinPolygon",
      points.map((point) => point.toJson).toList());
}