PHP Class Elastica\Query\GeoBoundingBox

Inheritance: extends AbstractQuery
Exibir arquivo Open project: ruflin/elastica Class Usage Examples

Public Methods

Method Description
__construct ( string $key, array $coordinates ) Construct BoundingBoxQuery.
addCoordinates ( string $key, array $coordinates ) Add coordinates.

Method Details

__construct() public method

Construct BoundingBoxQuery.
public __construct ( string $key, array $coordinates )
$key string Key
$coordinates array Array with top left coordinate as first and bottom right coordinate as second element

addCoordinates() public method

Add coordinates.
public addCoordinates ( string $key, array $coordinates )
$key string Key
$coordinates array Array with top left coordinate as first and bottom right coordinate as second element