Cake\ElasticSearch\FilterBuilder::geoBoundingBox PHP Method

geoBoundingBox() public method

### Example: {{{ $filter = $builder->geoBoundingBox('location', [40.73, -74.1], [40.01, -71.12]); $filter = $builder->geoBoundingBox( 'location', ['lat => 40.73, 'lon' => -74.1], ['lat => 40.01, 'lon' => -71.12] ); $filter = $builder->geoBoundingBox('location', 'dr5r9ydj2y73', 'drj7teegpus6'); }}}
See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-filter.html
public geoBoundingBox ( string $field, array | string $topLeft, array | string $bottomRight ) : Elastica\Filter\GeoBoundingBox
$field string The field to compare.
$topLeft array | string The top left coordinate.
$bottomRight array | string The bottom right coordinate.
return Elastica\Filter\GeoBoundingBox
    public function geoBoundingBox($field, $topLeft, $bottomRight)
    {
        return new Filter\GeoBoundingBox($field, [$topLeft, $bottomRight]);
    }