Cake\ElasticSearch\FilterBuilder::geoShape PHP Method

geoShape() public method

### Example: {{{ $filter = $builder->geoShape('location', [[13.0, 53.0], [14.0, 52.0]], 'envelope'); $filter = $builder->geoShape('location', [ [[-77.03653, 38.897676], [-77.009051, 38.889939]], 'linestring' ]); }}} You can read about the supported shapes and how they are created here: http://www.elastic.co/guide/en/elasticsearch/reference/1.x/mapping-geo-shape-type.html
See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-filter.html
public geoShape ( string $field, array $geoPoints, string $type = 'envelope' ) : Elastica\Filter\GeoShapeProvided
$field string The field to compare.
$geoPoints array List of geo points that form the shape.
$type string The shape type to use (envelope, linestring, polygon, multipolygon...)
return Elastica\Filter\GeoShapeProvided
    public function geoShape($field, array $geoPoints, $type = 'envelope')
    {
        return new Filter\GeoShapeProvided($field, $geoPoints, $type);
    }