public MeteoData < Weather > fetchContent ( ForecastQuery query ) throws MeteoException { MeteoResponse response = getMeteoClient ( ) . fetchContent ( createServiceUriBuilder ( ) . addParameter ( "forecast" , query . getName ( ) ) . addParameter ( "language" , query . getLanguage ( ) . getValue ( ) ) . build ( ) ) ; return new MeteoData <> ( parser . parse ( response . getData ( ) ) , response ) ; }
Fetch a textforecast for a named forecast