public function geoDistanceRange($field, $from, $to, array $location, array $attributes = [])
    {
        $range = compact('from', 'to');

        $query = new GeoDistanceRangeQuery($field, $range, $location, $attributes);

        $this->append($query);

        return $this;
    }
public function geoDistanceRange($field, $from, $to, array $location, array $attributes = [])
    {
        $range = compact('from', 'to');

        $query = new GeoDistanceRangeQuery($field, $range, $location, $attributes);

        $this->append($query);

        return $this;
    }
public function geoDistanceRange ( $ field , $ from , $ to , array $ location , array $ attributes = [ ] ) { $ range = compact ( 'from' , 'to' ) ; $ query = new GeoDistanceRangeQuery ( $ field , $ range , $ location , $ attributes ) ; $ this -> append ( $ query ) ; return $ this ; }
Add a geo distance range query.

@param string $field
@param $from
@param $to
@param mixed $location
@param array $attributes

@return $this
Add a geo distance range query .