Phirehose::getLocations PHP Метод

getLocations() публичный Метод

Returns an array of 4 element arrays that denote the monitored location bounding boxes for tweets using the Geotagging API.
См. также: setLocations()
public getLocations ( ) : array
Результат array
    public function getLocations()
    {
        if ($this->locationBoxes == NULL) {
            return NULL;
        }
        $locationBoxes = $this->locationBoxes;
        // Copy array
        $ret = array();
        while (count($locationBoxes) >= 4) {
            $ret[] = array_splice($locationBoxes, 0, 4);
            // Append to ret array in blocks of 4
        }
        return $ret;
    }