Elastica\Query\GeoShapeProvided::__construct PHP Method

__construct() public method

Construct geo_shape query.
public __construct ( string $path, array $coordinates, string $shapeType = self::TYPE_ENVELOPE )
$path string The path/field of the shape searched
$coordinates array Points making up the shape
$shapeType string Type of the geo_shape: point, envelope, linestring, polygon, multipoint or multipolygon
    public function __construct($path, array $coordinates, $shapeType = self::TYPE_ENVELOPE)
    {
        $this->_path = $path;
        $this->_shapeType = $shapeType;
        $this->_coordinates = $coordinates;
    }
GeoShapeProvided