public static function geoshape($field, Array $coordinates, $type = 'envelope')
    {
        $body = array(
            'query' => array(
                'geo_shape' => array(
                    $field => array(
                        'shape' => array(
                            'type' => $type,
                            'coordinates' => $coordinates
                        )
                    )
                )
            ),
            'size' => 1000
        );

        return static::search($body);
    }
public static function geoshape($field, Array $coordinates, $type = 'envelope')
    {
        $body = array(
            'query' => array(
                'geo_shape' => array(
                    $field => array(
                        'shape' => array(
                            'type' => $type,
                            'coordinates' => $coordinates
                        )
                    )
                )
            ),
            'size' => 1000
        );

        return static::search($body);
    }
public static function geoshape ( $ field , Array $ coordinates , $ type = 'envelope' ) { $ body = array ( 'query' => array ( 'geo_shape' => array ( $ field => array ( 'shape' => array ( 'type' => $ type , 'coordinates' => $ coordinates ) ) ) ) , 'size' => 1000 ) ; return static :: search ( $ body ) ; }
Builds a geoshape query.

@param string $field
@param array $coordinates
@param string $type
@return ElasticCollection
Builds a geoshape query .