A simple, WIP, unofficial .NET Core library for OpenWeatherMap
- currently it only supports "current weather"
the most basic constructor is:
Current currentWeather = new Current(API_KEY);
you can also specify your IRestService implementation like this
Current currentWeather = new Current(API_KEY, MyRestService);
you may also want to set the measurement units
Current currentWeather = new Current(API_KEY, WeatherUnits.Imperial);
you may also want to specify your IRestService implementation AND set the measurement units
Current currentWeather = new Current(API_KEY, MyRestService, WeatherUnits.Imperial);
then you can call any of the methods explained below
GetWeatherDataByZipAsync(string zipCode, string countryCode)
GetWeatherDataByCityNameAsync(string cityName, string countryCode = "")
GetWeatherDataByCityIdAsync(int cityId)
GetWeatherDataByCoordinatesAsync(double lat, double lon)
GetWeatherDataByCoordinatesAsync(Coordinates coordinates)
GetWeatherDataByZip(string zipCode, string countryCode)
GetWeatherDataByCityName(string cityName, string countryCode = "")
GetWeatherDataByCityId(int cityId)
GetWeatherDataByCoordinates(double lat, double lon)
GetWeatherDataByCoordinates(Coordinates coordinates)