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

CurrentWeather

This class provides extensions for the WeatherClient class, that get the current weather of a given location.

Methods

WeatherClient.GetCurrentWeather(cityName, measurement, language) Gets a new WeatherModel object with the current weather of a specific city.

WeatherClient.GetCurrentWeather(cityId, measurement, language) Gets a new WeatherModel object with the current weather of a specific city.

WeatherClient.GetCurrentWeather(latitude, longitude, measurement, language) Gets a new WeatherModel object with the current weather of a given location.

WeatherClient.GetCurrentWeather(zipCode, countryCode, measurement, language) Gets a new WeatherModel object with the current weather of a given location.

WeatherClient.GetCurrentWeatherAsync(cityName, measurement, language) Gets a new WeatherModel object with the current weather of a specific city asynchronously.

WeatherClient.GetCurrentWeatherAsync(cityId, measurement, language) Gets a new WeatherModel object with the current weather of a specific city asynchronously.

WeatherClient.GetCurrentWeatherAsync(latitude, longitude, measurement, language) Gets a new WeatherModel object with the current weather of a given location asynchronously.

WeatherClient.GetCurrentWeatherAsync(zipCode, countryCode, measurement, language) Gets a new WeatherModel object with the current weather of a given location asynchronously.

Back