public function withinBox($field, array $bottomLeftCoordinate, array $upperRightCoordinate)
    {
        $this->where($field, array(
            '$geoWithin' => array(
                '$box' => array(
                    $bottomLeftCoordinate,
                    $upperRightCoordinate,
                ),
            ),
        ));

        return $this;
    }
public function withinBox($field, array $bottomLeftCoordinate, array $upperRightCoordinate)
    {
        $this->where($field, array(
            '$geoWithin' => array(
                '$box' => array(
                    $bottomLeftCoordinate,
                    $upperRightCoordinate,
                ),
            ),
        ));

        return $this;
    }
public function withinBox ( $ field , array $ bottomLeftCoordinate , array $ upperRightCoordinate ) { $ this -> where ( $ field , array ( '$geoWithin' => array ( '$box' => array ( $ bottomLeftCoordinate , $ upperRightCoordinate , ) , ) , ) ) ; return $ this ; }
Return documents that are within the bounds of the rectangle, according
to their point-based location data.

Based on grid coordinates and does not query for GeoJSON shapes.

Use planar geometry, so 2d index may be used but not required

@param string $field
@param array $bottomLeftCoordinate Bottom left coordinate of box
@param array $upperRightCoordinate Upper right coordinate of box
@return Expression
Return documents that are within the bounds of the rectangle according to their point - based location data .