Cake\ElasticSearch\FilterBuilder::geoPolygon PHP Method

geoPolygon() public method

### Example: {{{ $filter = $builder->geoPolygon('location', [ ['lat' => 40, 'lon' => -70], ['lat' => 30, 'lon' => -80], ['lat' => 20, 'lon' => -90], ]); $filter = $builder->geoPolygon('location', [ 'drn5x1g8cu2y', ['lat' => 30, 'lon' => -80], '20, -90', ]); }}}
See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-polygon-filter.html
public geoPolygon ( string $field, array $geoPoints ) : Elastica\Filter\GeoPolygon
$field string The field to compare.
$geoPoints array List of geo points that form the polygon
return Elastica\Filter\GeoPolygon
    public function geoPolygon($field, array $geoPoints)
    {
        return new Filter\GeoPolygon($field, $geoPoints);
    }