WeatherFields

class WeatherFields(val systemOfMeasurement: WeatherSystemOfMeasurement, val temperature: Float? = null, val temperatureFeelsLike: Float? = null, val temperatureMin: Float? = null, val temperatureMax: Float? = null, val cloudCover: Float? = null, val dewPoint: Float? = null, val humidity: Float? = null, val precipitationRate: Float? = null, val snowRate: Float? = null, val precipitationProbability: Float? = null, val precipitationType: String? = null, val pressureSeaLevel: Float? = null, val pressureSurfaceLevel: Float? = null, val visibility: Float? = null, val windSpeed: Float? = null, val windGust: Float? = null, val windDirection: Float? = null, val weatherPhrase: String? = null, val iconCode: WeatherIconCode? = null, val daytime: Boolean? = null)

Represents a set of fields related to weather condition.

Parameters

systemOfMeasurement

represents the unit of measure

temperature

represents temperature in defined unit of measure

temperatureFeelsLike

represents an apparent temperature. It represents what the air temperature “feels like” on exposed human skin due to the combined effect of the wind chill or heat index.

temperatureMin

The minimum forecasted temperature in the defined unit of measure.

temperatureMax

The maximum forecasted temperature in the defined unit of measure.

cloudCover

represents hourly average cloud cover expressed as a percentage.

dewPoint

represents the temperature to which air must be cooled at constant pressure to reach saturation.

humidity

represents the relative humidity of the air, which is defined as the ratio of the amount of water vapor in the air to the amount of vapor required to bring the air to saturation at a constant temperature. Relative humidity is always expressed as a percentage.

precipitationRate

represents rolling hour liquid precip amount. The amounts presented are a rolling time through the request time (now). Units - Expressed in inches per hour when systemOfMeasurement=WeatherSystemOfMeasurement.Imperial, and in millimeters per hour when systemOfMeasurement=WeatherSystemOfMeasurement.Metric.

precipitationProbability

represents hourly maximum probability of precipitation expressed as a percentage.

precipitationType

The short text describing the expected precipitation type, for example, "rain", "snow"

snowRate

The rolling hourly rate of snowfall. Expressed in centimeters per hour when systemOfMeasurement is WeatherSystemOfMeasurement.Metric, or in inches per hour when systemOfMeasurement is WeatherSystemOfMeasurement.Imperial.

pressureSeaLevel

represents sea level pressure in millibars. In other words, the average barometric pressure at sea level. Range - Millibars precise to 1/10th mb

pressureSurfaceLevel

represents surface level pressure in millibars. In other words, the average barometric pressure at surface level. Range - Millibars precise to 1/10th mb

visibility

represents the horizontal visibility at the observation point. Expressed in kilometers for metric system and in miles for imperial system. Visibilities can be reported as fractional values particularly when visibility is less than 2 miles. You can also find visibility values that equal zero. This occurrence is not wrong. Dense fog and heavy snows can produce values near zero. Fog, smoke, heavy rain and other weather phenomena can reduce visibility to near zero miles or kilometers.

windSpeed

units: expressed in miles per hour when systemOfMeasurement=WeatherSystemOfMeasurement.Imperial expressed in kilometers per hour when systemOfMeasurement=WeatherSystemOfMeasurement.Metric.

windGust

represents information about sudden and temporary variations of the average Wind Speed. Units: expressed in miles per hour when systemOfMeasurement=WeatherSystemOfMeasurement.Imperial expressed in kilometers per hour when systemOfMeasurement=WeatherSystemOfMeasurement.Metric.

windDirection

represents the magnetic wind direction from which the wind blows expressed in degrees. The magnetic direction varies from 0 to 359 degrees, where 0° indicates the North, 90° the East, 180° the South, 270° the West, and so forth.

weatherPhrase

represents a text description (up to 32 characters) of observed weather conditions in English.

iconCode

Represents weather icon codes that provide a simple summary of the weather, suitable for use in UI components.

daytime

indicates whether it is daytime or nighttime based on the Local Apparent Time of the geometry.

Constructors

Link copied to clipboard
constructor(systemOfMeasurement: WeatherSystemOfMeasurement, temperature: Float? = null, temperatureFeelsLike: Float? = null, temperatureMin: Float? = null, temperatureMax: Float? = null, cloudCover: Float? = null, dewPoint: Float? = null, humidity: Float? = null, precipitationRate: Float? = null, snowRate: Float? = null, precipitationProbability: Float? = null, precipitationType: String? = null, pressureSeaLevel: Float? = null, pressureSurfaceLevel: Float? = null, visibility: Float? = null, windSpeed: Float? = null, windGust: Float? = null, windDirection: Float? = null, weatherPhrase: String? = null, iconCode: WeatherIconCode? = null, daytime: Boolean? = null)

Properties

Link copied to clipboard
val cloudCover: Float? = null
Link copied to clipboard
val daytime: Boolean? = null
Link copied to clipboard
val dewPoint: Float? = null
Link copied to clipboard
val humidity: Float? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val pressureSeaLevel: Float? = null
Link copied to clipboard
Link copied to clipboard
val snowRate: Float? = null
Link copied to clipboard
val temperature: Float? = null
Link copied to clipboard
Link copied to clipboard
val temperatureMax: Float? = null
Link copied to clipboard
val temperatureMin: Float? = null
Link copied to clipboard
val visibility: Float? = null
Link copied to clipboard
val weatherPhrase: String? = null
Link copied to clipboard
val windDirection: Float? = null
Link copied to clipboard
val windGust: Float? = null
Link copied to clipboard
val windSpeed: Float? = null

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.