EnvironmentData

data class EnvironmentData(val temperatureCelsius: Double? = null, val windDirectionDeg: Int? = null, val windSpeedMetersPerSec: Double? = null)(source)

Weather annotation from a CoT <environment> detail element.

Every field is nullable so senders can emit a partial element (e.g. just temperature= when no wind data is available). On the wire the proto message is present whenever any sub-field is non-null; absent scalars encode as the proto3 default (0) and decode back to null via the serializer's unit-conversion path — see TakPacketV2Serializer.

Constructors

Link copied to clipboard
constructor(temperatureCelsius: Double? = null, windDirectionDeg: Int? = null, windSpeedMetersPerSec: Double? = null)

Properties

Link copied to clipboard

Temperature in °C (one-decimal precision on the wire). null = not set.

Link copied to clipboard

Wind direction "from" in whole degrees, 0–359. null = not set.

Link copied to clipboard

Wind speed in m/s (two-decimal precision on the wire). null = not set.