cuba_weather_dart library

Classes

CubaWeather
InsmetForecastModel
InsmetForecastRepository
InsmetMarineForecastModel
InsmetMarineForecastRepository
InsmetSourceRepository
Class to provide the functionality of searching for a source
InsmetWeatherApiClient
Class to provide the functionality of making API requests
InsmetWeatherDayModel
Model class for mapping part of the json returned by the https://www.insmet.cu weather API
InsmetWeatherModel
Model class for mapping the json returned by the https://www.insmet.cu weather API
InsmetWeatherRepository
Class to provide the functionality of obtaining weather data
MunicipalityModel
Class of represent a Municipality
MunicipalityRepository
Class to provide the functionality of searching for a municipality
RedCubaSourceRepository
Class to provide the functionality of searching for a source
RedCubaWeatherApiClient
Class to provide the functionality of making API requests
RedCubaWeatherDateModel
Model class for mapping part of the json returned by the https://www.redcuba.cu weather API
RedCubaWeatherModel
Model class for mapping the json returned by the https://www.redcuba.cu weather API
RedCubaWeatherRepository
Class to provide the functionality of obtaining weather data
SourceModel
WeatherForecastModel
WeatherModel

Properties

dictStateToString Map<InsmetState, String>
final
dictStringToState Map<String, InsmetState>
final
insmetSources List<SourceModel>
Sources of weather data
read / write
municipalities List<MunicipalityModel>
Cuban municipalities
read / write
redcubaSources List<SourceModel>
Sources of weather data
read / write

Functions

curateMunicipality(String municipality) String
Method that eliminates the letters with tilde, dieresis, etc.
distance(String s1, String s2) int
Implementation of Damerau-Levenshtein distance with transposition (also sometimes calls unrestricted Damerau-Levenshtein distance). It is the minimum number of operations needed to transform one string into the other, where an operation is defined as an insertion, deletion, or substitution of a single character, or a transposition of two adjacent characters.

Enums

CardinalPoint
Cardinal Point directions source: https://www.ecured.cu/Velocidad_del_viento
InsmetState

Exceptions / Errors

BadRequestException
InvalidSourceException
ParseException