Skip to main content

Base Entities

Last updated: June 10, 2026 | 3 minutes read

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

The main classes include WeatherContextForecast, WeatherContextConditions, and WeatherContextParameter. This guide provides a detailed explanation of each class and its purpose.

WeatherContextForecast​

The WeatherContextForecast class retains data such as the forecast update timestamp, the geographic location, and a single set of forecast conditions for a specific time slot.

PropertyTypeDescription
updateTimestampTimeObject?Forecast update timestamp
coordinatesObjectCoordinatesObject?Geographic location
conditionsWeatherContextConditionsForecast conditions for this time slot

WeatherContextConditions​

The WeatherContextConditions class retains weather conditions for a given timestamp.

PropertyTypeDescription
typeStringFor possible values see Predefined parameter type values
stampTimeObject?Timestamp for condition
imageObjectImageObject?Image representation
detailsStringDescription translated according to the current SDK language
daylightWeatherDaylightDaylight condition
parameters[WeatherContextParameter]Parameter list

WeatherDaylight​

The WeatherDaylight enum indicates the daylight state for a given set of conditions.

ValueDescription
WeatherDaylightNotAvailableDaylight condition not available
WeatherDaylightDayDaytime
WeatherDaylightNightNighttime

Predefined parameter type values​

The following strings are the common values for WeatherContextConditions.type and WeatherContextParameter.type.

ValueDescriptionUnit
"AirQuality"Air quality index-
"DewPoint"Dew point temperature°C
"FeelsLike"Apparent temperature°C
"Humidity"Relative humidity%
"Pressure"Atmospheric pressuremb
"Sunrise"Sunrise time-
"Sunset"Sunset time-
"Temperature"Current temperature°C
"UV"UV index-
"Visibility"Visibility distancekm
"WindDirection"Wind direction°
"WindSpeed"Wind speedkm/h
"TemperatureLow"Daily minimum temperature°C
"TemperatureHigh"Daily maximum temperature°C
danger

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

WeatherContextParameter​

The WeatherContextParameter class contains weather parameter data.

PropertyTypeDescription
typeStringFor possible values see Predefined parameter type values
valueDoubleValue
nameStringName translated according to the current SDK language
unitStringUnit translated according to the current SDK language