public function getCurrentUVIndex($lat, $lon)
    {
        $answer = $this->getRawCurrentUVIndexData($lat, $lon);
        $json = $this->parseJson($answer);

        return new UVIndex($json);
    }
public function getCurrentUVIndex($lat, $lon)
    {
        $answer = $this->getRawCurrentUVIndexData($lat, $lon);
        $json = $this->parseJson($answer);

        return new UVIndex($json);
    }
public function getCurrentUVIndex ( $ lat , $ lon ) { $ answer = $ this -> getRawCurrentUVIndexData ( $ lat , $ lon ) ; $ json = $ this -> parseJson ( $ answer ) ; return new UVIndex ( $ json ) ; }
Returns the current uv index at the location you specified.

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

@throws OpenWeatherMap\Exception  If OpenWeatherMap returns an error.
@throws \InvalidArgumentException If an argument error occurs.

@return UVIndex The uvi object.

@api
Returns the current uv index at the location you specified .