Doctrine\MongoDB\Aggregation\Stage\Match::geoWithinPolygon PHP Method

geoWithinPolygon() public method

Point coordinates are in x, y order (easting, northing for projected coordinates, longitude, latitude for geographic coordinates). The last point coordinate is implicitly connected with the first. Note: the $polygon operator only supports legacy coordinate pairs and 2d indexes. This cannot be used with 2dsphere indexes and GeoJSON shapes.
See also: Expr::geoWithinPolygon()
See also: http://docs.mongodb.org/manual/reference/operator/polygon/
public geoWithinPolygon ( )
    public function geoWithinPolygon()
    {
        $this->query->geoWithinPolygon(...func_get_args());
        return $this;
    }