public function getRawCurrentUVIndexData($lat, $lon)
    {
        if (!$this->apiKey) {
            throw new \RuntimeException('Before using this method, you must set the api key using ->setApiKey()');
        }
        if (!is_float($lat) || !is_float($lon)) {
            throw new \InvalidArgumentException('$lat and $lon must be floating point numbers');
        }
        $url = $this->buildUVIndexUrl($lat, $lon);

        return $this->cacheOrFetchResult($url);
    }
public function getRawCurrentUVIndexData($lat, $lon)
    {
        if (!$this->apiKey) {
            throw new \RuntimeException('Before using this method, you must set the api key using ->setApiKey()');
        }
        if (!is_float($lat) || !is_float($lon)) {
            throw new \InvalidArgumentException('$lat and $lon must be floating point numbers');
        }
        $url = $this->buildUVIndexUrl($lat, $lon);

        return $this->cacheOrFetchResult($url);
    }
public function getRawCurrentUVIndexData ( $ lat , $ lon ) { if ( ! $ this -> apiKey ) { throw new \ RuntimeException ( 'Before using this method, you must set the api key using ->setApiKey()' ) ; } if ( ! is_float ( $ lat ) || ! is_float ( $ lon ) ) { throw new \ InvalidArgumentException ( '$lat and $lon must be floating point numbers' ) ; } $ url = $ this -> buildUVIndexUrl ( $ lat , $ lon ) ; return $ this -> cacheOrFetchResult ( $ url ) ; }
Directly returns the json string returned by OpenWeatherMap for the current UV index data.

@param float $lat                   The location's latitude.
@param float $lon                   The location's longitude.

@return bool|string Returns the fetched data.

@api
Directly returns the json string returned by OpenWeatherMap for the current UV index data .