LMongo\Query\Builder::whereGeoIntersects PHP Метод

whereGeoIntersects() публичный Метод

Add an "$geoIntersects geospatial operation" clause to logical operation.
public whereGeoIntersects ( string $column, string $geometry, array $coords, string $boolean = 'first' ) : LMongo\Query\Builder
$column string
$geometry string
$coords array
$boolean string
Результат LMongo\Query\Builder
    public function whereGeoIntersects($column, $geometry, array $coords, $boolean = 'first')
    {
        $value = array('$geoIntersects' => array('$geometry' => array('type' => $geometry, 'coordinates' => $coords)));
        return $this->where($column, $value, $boolean);
    }
Builder