Weather.NET

Weather.NET's official website, where you can find the documentation for this library.


Project maintained by EloyEspinosa Hosted on GitHub Pages — Theme by mattgraham

OneCallApi

This class provides extension methods for WeatherClient that get OpenWeather’s One Call API.

Methods

WeatherClient.GetOneCall(latitude, longitude, exclude, measurement, language) Gets a new OneCallModel object with the One Call API response of a given location.

WeatherClient.GetHistoricalOneCall(latitude, longitude, dateUnix, measurement, language) Gets a new OneCallModel object that acts as a “time machine”, that goes up to 5 days back in time, for a One Call response of the date given, where MinutelyForecasts, DailyForecasts and NationalAlerts were excluded, CurrentWeather refers to the exact date given, and HourlyForecasts refers to a description of the weather of a specific hour in the day.

WeatherClient.GetOneCallAsync(latitude, longitude, exclude, measurement, language) Gets a new OneCallModel object with the One Call API response of a given location asynchronously.

WeatherClient.GetHistoricalOneCallAsync(latitude, longitude, dateUnix, measurement, language) Gets a new OneCallModel object that acts as a “time machine”, that goes up to 5 days back in time, for a One Call response of the date given, where MinutelyForecasts, DailyForecasts and NationalAlerts were excluded, CurrentWeather refers to the exact date given, and HourlyForecasts refers to a description of the weather of a specific hour in the day asynchronously.

Back