geoWithinCenter() public method

Note: the $center operator only supports legacy coordinate pairs and 2d indexes. This cannot be used with 2dsphere indexes and GeoJSON shapes.
See also: Builider::geoWithinCenter()
See also: http://docs.mongodb.org/manual/reference/operator/center/
public geoWithinCenter ( float $x, float $y, float $radius )
$x float
$y float
$radius float
Esempio n. 1
0
 /**
  * Add $geoWithin criteria with a $center shape to the query.
  *
  * Note: the $center operator only supports legacy coordinate pairs and 2d
  * indexes. This cannot be used with 2dsphere indexes and GeoJSON shapes.
  *
  * @see Expr::geoWithinCenter()
  * @see http://docs.mongodb.org/manual/reference/operator/center/
  * @param float $x
  * @param float $y
  * @param float $radius
  * @return self
  */
 public function geoWithinCenter($x, $y, $radius)
 {
     $this->expr->geoWithinCenter($x, $y, $radius);
     return $this;
 }