Cake\ElasticSearch\FilterBuilder::geoHashCell PHP Method

geoHashCell() public method

### Example: {{{ $filter = $builder->geoHashCell('location', [40, -70], 3); }}}
See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geohash-cell-filter.html
public geoHashCell ( string $field, string | array $location, integer | string $precision, boolean $neighbors = false ) : Elastica\Filter\GeohashCell
$field string The field to compare.
$location string | array Location as coordinates array or geohash string.
$precision integer | string Length of geohash prefix or distance (3, or "50m")
$neighbors boolean If true, filters cells next to the given cell.
return Elastica\Filter\GeohashCell
    public function geoHashCell($field, $location, $precision = -1, $neighbors = false)
    {
        return new Filter\GeohashCell($field, $location, $precision, $neighbors);
    }