Skip to main content

Base Entities

|

Weather-related functionalities are organized into distinct classes, each designed to encapsulate specific weather data.

The main classes include LocationForecast, Conditions, and Parameter. This guide provides a detailed explanation of each class and its purpose.


LocationForecast

The LocationForecast class retains data such as the forecast update datetime, the geographic location, and forecast data.

PropertyTypeDescription
updatedTimeForecast update datetime (UTC)
coordCoordinatesGeographic location
forecastList<Conditions>Forecast data

Conditions

The Conditions class retains weather conditions for a given timestamp.

PropertyTypeDescription
typeStringFor possible values see add ref[PredefinedParameterTypeValues]
stampTimeDatetime for condition (UTC)
imageImageThe conditions image
descriptionStringDescription translated according to the current SDK language
daylightEDaylightDaylight condition
paramsList<Parameter>Parameter list

Parameter

The Parameter class contains weather parameter data.

PropertyTypeDescription
typeStringFor possible values see below
valuedoubleValue
nameStringName translated according to the current SDK language
unitStringUnit

Parameter Type Values

The common values for Parameter::type are:

PropertyDescriptionUnit
AirQualityAir quality value-
DewPointDew point value°C
FeelsLikeFeels like value°C
HumidityHumidity value%
PressureAtmospheric pressure valuemb
SunRiseSun rise time-
SunSetSun set time-
TemperatureCurrent temperature value°C
UVUltra violet index value-
VisibilityVisibility distancekm
WindDirectionWind direction value°
WindSpeedWind speed valuekm/h
TemperatureLowTemperature low value°C
TemperatureHighTemperature high value°C
danger

The WeatherService may return data with varying property types, depending on data availability. A response might include only a subset of the values listed above.