public withinPolygon ( string $field, array $points ) : |
||
$field | string | |
$points | array | array of coordinates |
return |
public function withinPolygon($field, array $points)
{
$this->where($field, array('$geoWithin' => array('$polygon' => $points)));
return $this;
}