Example #1
0
        public async Task <Prediction> GetForecast(string cityName)
        {
            var url = $"https://api.openweathermap.org/data/2.5/forecast?q={cityName}&units=metric";

            var predJson = await _getString(url);

            var prediction = Prediction.FromJson(predJson);

            return(prediction);
        }