public function geoNear($x, $y = null)
{
return $this->addStage(new Stage\GeoNear($this, $x, $y));
}
/** * Outputs documents in order of nearest to farthest from a specified point. * You can only use this as the first stage of a pipeline. * * @see http://docs.mongodb.org/manual/reference/operator/aggregation/geoNear/ * * @param float|array|Point $x * @param float $y * @return Stage\GeoNear */ public function geoNear($x, $y = null) { return $this->builder->geoNear($x, $y); }