コード例 #1
0
ファイル: Builder.php プロジェクト: cosmow/riak
 /**
  * Add $nearSphere criteria to the query.
  *
  * A GeoJSON point may be provided as the first and only argument for
  * 2dsphere queries. This single parameter may be a GeoJSON point object or
  * an array corresponding to the point's JSON representation.
  *
  * @see Expr::nearSphere()
  * @see http://docs.mongodb.org/manual/reference/operator/nearSphere/
  * @param float|array|Point $x
  * @param float $y
  * @return self
  */
 public function nearSphere($x, $y = null)
 {
     $this->expr->nearSphere($x, $y);
     return $this;
 }