open_weather_map_client library

Classes

ApiError
Errors information when the data cannot be obtained.
City
City information.
Condition
Weather condition
Coordinates
Coordinates class to get the geographic location.
Country
Country information.
CurrentWeather
Current weather information.
Detail
Main information of the weather.
OpenWeatherMap
Useful to obtain weather data, it connects with the Open Weather Map API.
Rain
Rain information.
Wind
Wind information.

Enums

Language
All languages available in Open Weather Map API.

Constants

kApiCurrentWeatherPath → const String
This is an internal parameter used in api url to obtain the current climate.
kApiFiveDayForecastPath → const String
This is an internal parameter used in api url to get the 5 day weather data.
kApiUnencodedPath → const String
Contain the unencoded path, after main domain.
kCountries → const Map<String, String>
Map with all countries in English use ISO 3166-1 key to get country name.
kFreeApiAuthority → const String
Contain the api authority is the main domain of Free plans.

Functions

languageCode(Language language) String
Defines a string with available language.