You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source/DataPoint.swift
+28-24
Original file line number
Diff line number
Diff line change
@@ -11,49 +11,49 @@ import Foundation
11
11
/// Weather data for a specific location and time.
12
12
publicstructDataPoint{
13
13
14
-
/// The time at which this `DataPoint` occurs.
14
+
/// The time at which this `DataPoint` begins. `minutely` `DataPoint`s are always aligned to the top of the minute, `hourly` `DataPoint`s to the top of the hour, and `daily` `DataPoint`s to midnight of the day, all according to the local timezone.
15
15
publiclettime:Date
16
16
17
-
/// A human-readable text summary of the weather.
17
+
/// A human-readable text summary of this `DataPoint`.
18
18
publicletsummary:String?
19
19
20
-
/// A machine-readable summary of the weather suitable for selecting an icon for display.
20
+
/// A machine-readable text summary of this data point, suitable for selecting an icon for display.
21
21
publicleticon:Icon?
22
22
23
-
/// The time of the last sunrise before the solar noon closest to local noon on the given day. Only defined on `Forecast`'s `daily` `DataPoint`s. Note: near the poles, this may occur on a different day entirely!
23
+
/// The time when the sun will rise during a given day. Only defined on `Forecast`'s `daily` `DataPoint`s.
24
24
publicletsunriseTime:Date?
25
25
26
-
/// The time of the first sunset after the solar noon closest to local noon on the given day. Only defined on `Forecast`'s `daily` `DataPoint`s. Note: near the poles, this may occur on a different day entirely!
26
+
/// The time when the sun will set during a given day. Only defined on `Forecast`'s `daily` `DataPoint`s.
27
27
publicletsunsetTime:Date?
28
28
29
-
/// The fractional part of the lunation number of the given day. This can be thought of as the "percentage complete" of the current lunar month. A value of `0` represents a new moon, a value of `0.25` represents a first quarter moon, a value of `0.5` represents a full moon, and a value of `0.75` represents a last quarter moon. The ranges between these values represent waxing crescent, waxing gibbous, waning gibbous, and waning crescent moons, respectively. Only defined on `Forecast`'s `daily` `DataPoint`s.
29
+
/// The fractional part of the lunation number during the given day: a value of `0` corresponds to a new moon, `0.25` to a first quarter moon, `0.5` to a full moon, and `0.75` to a last quarter moon. The ranges in between these represent waxing crescent, waxing gibbous, waning gibbous, and waning crescent moons, respectively. Only defined on `Forecast`'s `daily` `DataPoint`s.
30
30
publicletmoonPhase:Float?
31
31
32
-
/// The distance to the nearest storm in miles. This value is *very approximate* and should not be used in scenarios requiring accurate results. A storm distance of `0` doesn't necessarily refer to a storm at the requested location, but rather a storm in the vicinity of the requested location. Only defined on `Forecast`'s `currently` `DataPoint`s.
32
+
/// The approximate distance to the nearest storm. A storm distance of `0` doesn't necessarily refer to a storm at the requested location, but rather a storm in the vicinity of that location. Only defined on `Forecast`'s `currently` `DataPoint`s.
33
33
publicletnearestStormDistance:Float?
34
34
35
-
/// The direction of the nearest storm in degrees, with true north at 0º and progressing clockwise. If `nearestStormDistance` is `0`, then this value will be `nil`. The caveats that apply to `nearestStormDistance` apply to this too. Only defined on `Forecast`'s `currently` `DataPoint`s.
35
+
/// The approximate direction of the nearest storm in degrees, with true north at 0º and progressing clockwise. If `nearestStormDistance` is `0`, then this value will be `nil`. Only defined on `Forecast`'s `currently` `DataPoint`s.
36
36
publicletnearestStormBearing:Float?
37
37
38
-
/// The average expected intensity in inches of liquid water per hour of precipitation occurring at the given time*conditional on probability* (assuming any precipitation occurs at all). A *very* rough guide is that a value of `0` corresponds to no precipitation, `0.002` corresponds to very light precipitation, `0.017` corresponds to light precipitation, `0.1` corresponds to moderate precipitation, and `0.4` corresponds to heavy precipitation.
38
+
/// The intensity of precipitation occuring at the given time. This value is *conditional on probability* (that is, assuming any precipitation falls at all) for `minutely` `DataPoint`s, and unconditional otherwise.
39
39
publicletprecipitationIntensity:Float?
40
40
41
-
/// Maximum expected intensity of precipitation on the given day in inches of liquid water per hour. Only defined on `Forecast`'s `daily` `DataPoint`s.
41
+
/// The maximum value of `precipitationIntensity` during a given day. Only defined on `Forecast`'s `daily` `DataPoint`s.
42
42
publicletprecipitationIntensityMax:Float?
43
43
44
-
/// Time at which the maximum expected intensity of precipitation will occur. Only defined on `Forecast`'s `daily` `DataPoint`s.
44
+
/// The time at which `precipitationIntensityMax` occurs during a given day. Only defined on `Forecast`'s `daily` `DataPoint`s.
45
45
publicletprecipitationIntensityMaxTime:Date?
46
46
47
-
/// Value between `0` and `1` (inclusive) representing the probability of precipitation occurring at the given time.
47
+
/// The probability of precipitation occurring, between `0` and `1`, inclusive.
48
48
publicletprecipitationProbability:Float?
49
49
50
-
/// Type of precipitation occurring at the given time. If `precipIntensity` is `0`, then this will be `nil`.
50
+
/// The type of precipitation occurring at the given time. If `precipIntensity` is `0`, then this will be `nil`.
51
51
publicletprecipitationType:Precipitation?
52
52
53
-
/// The amount of snowfall accumulation expected to occur on the given day, in inches. This will be `nil` if no accumulation is expected. Only defined on `Forecast`'s `hourly` and `daily` `DataPoint`s.
53
+
/// The amount of snowfall accumulation expected to occur. This will be `nil` if no accumulation is expected. Only defined on `Forecast`'s `hourly` and `daily` `DataPoint`s.
54
54
publicletprecipitationAccumulation:Float?
55
55
56
-
/// The temperature at the given time in degrees Fahrenheit. Not defined on `Forecast`'s `daily` `DataPoint`s.
56
+
/// The air temperature. Not defined on `Forecast`'s `minutely` `DataPoint`s.
57
57
publiclettemperature:Float?
58
58
59
59
/// The overnight low temperature. Only defined on `Forecast`'s `daily` `DataPoint`s.
@@ -68,7 +68,7 @@ public struct DataPoint {
68
68
/// The time at which the daytime high temperature occurs. Only defined on `Forecast`'s `daily` `DataPoint`s.
69
69
publiclettemperatureHighTime:Date?
70
70
71
-
/// The apparent or "feels like" temperature at the given time in degrees Fahrenheit. Not defined on `Forecast`'s `daily` `DataPoint`s.
71
+
/// The apparent or "feels like" temperature. Not defined on `Forecast`'s `daily` `DataPoint`s.
72
72
publicletapparentTemperature:Float?
73
73
74
74
/// The overnight low apparent temperature. Only defined on `Forecast`'s `daily` `DataPoint`s.
@@ -83,25 +83,28 @@ public struct DataPoint {
83
83
/// The time at which the daytime high apparent temperature occurs. Only defined on `Forecast`'s `daily` `DataPoint`s.
84
84
publicletapparentTemperatureHighTime:Date?
85
85
86
-
/// The dew point at the given time in degrees Fahrenheit.
86
+
/// The dew point at the given time.
87
87
publicletdewPoint:Float?
88
88
89
-
/// The wind speed at the given time in miles per hour.
89
+
/// The wind gust speed.
90
+
publicletwindGust:Float?
91
+
92
+
/// The wind speed at the given time.
90
93
publicletwindSpeed:Float?
91
94
92
-
/// The direction that the wind is coming from in degrees, with true north at 0º and progressing clockwise. If `windSpeed` is `0`, then this will be `nil`.
95
+
/// The direction that the wind is coming *from* in degrees, with true north at 0º and progressing clockwise. If `windSpeed` is `0`, then this will be `nil`.
93
96
publicletwindBearing:Float?
94
97
95
-
/// Value between `0` and `1` (inclusive) representing the percentage of sky occluded by clouds. A value of `0` corresponds to a clear sky, `0.4` corresponds to scattered clouds, `0.75` correspond to broken cloud cover, and `1` corresponds to completely overcast skies.
98
+
/// The percentage of sky occluded by clouds, between `0` and `1`, inclusive.
96
99
publicletcloudCover:Float?
97
100
98
-
/// Value between `0` and `1` (inclusive) representing the relative humidity.
101
+
/// The relative humidity, between `0` and `1`, inclusive.
99
102
publiclethumidity:Float?
100
103
101
-
/// The sea-level air pressure in millibars.
104
+
/// The sea-level air pressure.
102
105
publicletpressure:Float?
103
106
104
-
/// The average visibility in miles, capped at `10`.
107
+
/// The average visibility, capped at 10 miles.
105
108
publicletvisibility:Float?
106
109
107
110
/// The columnar density of total atomspheric ozone at the given time in Dobson units.
@@ -110,7 +113,7 @@ public struct DataPoint {
110
113
/// The UV index.
111
114
publicletuvIndex:Float?
112
115
113
-
// The time at which the maximum UV index occurs during the given day.
116
+
/// The time at which the maximum UV index occurs during the given day. Only defined on `Forecast`'s `daily` `DataPoint`s.
0 commit comments