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
+42-42
Original file line number
Diff line number
Diff line change
@@ -27,85 +27,85 @@ public struct DataPoint {
27
27
publicletsunsetTime:Date?
28
28
29
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.
30
-
publicletmoonPhase:Float?
30
+
publicletmoonPhase:Double?
31
31
32
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.
33
-
publicletnearestStormDistance:Float?
33
+
publicletnearestStormDistance:Double?
34
34
35
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.
36
-
publicletnearestStormBearing:Float?
36
+
publicletnearestStormBearing:Double?
37
37
38
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.
39
-
publicletprecipitationIntensity:Float?
39
+
publicletprecipitationIntensity:Double?
40
40
41
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.
42
-
publicletprecipitationIntensityMax:Float?
42
+
publicletprecipitationIntensityMax:Double?
43
43
44
44
/// Time at which the maximum expected intensity of precipitation will occur. Only defined on `Forecast`'s `daily` `DataPoint`s.
45
45
publicletprecipitationIntensityMaxTime:Date?
46
46
47
47
/// Value between `0` and `1` (inclusive) representing the probability of precipitation occurring at the given time.
48
-
publicletprecipitationProbability:Float?
48
+
publicletprecipitationProbability:Double?
49
49
50
50
/// Type of precipitation occurring at the given time. If `precipIntensity` is `0`, then this will be `nil`.
51
51
publicletprecipitationType:Precipitation?
52
52
53
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.
54
-
publicletprecipitationAccumulation:Float?
54
+
publicletprecipitationAccumulation:Double?
55
55
56
56
/// The temperature at the given time in degrees Fahrenheit. Not defined on `Forecast`'s `daily` `DataPoint`s.
57
-
publiclettemperature:Float?
57
+
publiclettemperature:Double?
58
58
59
59
/// The minimum temperature on the given day in degrees Fahrenheit. Only defined on `Forecast`'s `daily` `DataPoint`s.
60
-
publiclettemperatureMin:Float?
60
+
publiclettemperatureMin:Double?
61
61
62
62
/// The time at which the minimum temperature will occur on the given day in degrees Fahrenheit. Only defined on `Forecast`'s `daily` `DataPoint`s.
63
63
publiclettemperatureMinTime:Date?
64
64
65
65
/// The maximum temperature on the given day in degrees Fahrenheit. Only defined on `Forecast`'s `daily` `DataPoint`s.
66
-
publiclettemperatureMax:Float?
66
+
publiclettemperatureMax:Double?
67
67
68
68
/// The time at which the maximum temperature will occur on the given day in degrees Fahrenheit. Only defined on `Forecast`'s `daily` `DataPoint`s.
69
69
publiclettemperatureMaxTime:Date?
70
70
71
71
/// The apparent or "feels like" temperature at the given time in degrees Fahrenheit. Not defined on `Forecast`'s `daily` `DataPoint`s.
72
-
publicletapparentTemperature:Float?
72
+
publicletapparentTemperature:Double?
73
73
74
74
/// The minimum apparent or "feels like" temperature on the given day in degrees Fahrenheit. Only defined on `Forecast`'s `daily` `DataPoint`s.
75
-
publicletapparentTemperatureMin:Float?
75
+
publicletapparentTemperatureMin:Double?
76
76
77
77
/// The time at which the minimum apparent or "feels like" temperature will occur on the given day in degrees Fahrenheit. Only defined on `Forecast`'s `daily` `DataPoint`s.
78
78
publicletapparentTemperatureMinTime:Date?
79
79
80
80
/// The maximum apparent or "feels like" temperature on the given day in degrees Fahrenheit. Only defined on `Forecast`'s `daily` `DataPoint`s.
81
-
publicletapparentTemperatureMax:Float?
81
+
publicletapparentTemperatureMax:Double?
82
82
83
83
/// The time at which the maximum apparent or "feels like" temperature will occur on the given day in degrees Fahrenheit. Only defined on `Forecast`'s `daily` `DataPoint`s.
84
84
publicletapparentTemperatureMaxTime:Date?
85
85
86
86
/// The dew point at the given time in degrees Fahrenheit.
87
-
publicletdewPoint:Float?
87
+
publicletdewPoint:Double?
88
88
89
89
/// The wind speed at the given time in miles per hour.
90
-
publicletwindSpeed:Float?
90
+
publicletwindSpeed:Double?
91
91
92
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`.
93
-
publicletwindBearing:Float?
93
+
publicletwindBearing:Double?
94
94
95
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.
96
-
publicletcloudCover:Float?
96
+
publicletcloudCover:Double?
97
97
98
98
/// Value between `0` and `1` (inclusive) representing the relative humidity.
99
-
publiclethumidity:Float?
99
+
publiclethumidity:Double?
100
100
101
101
/// The sea-level air pressure in millibars.
102
-
publicletpressure:Float?
102
+
publicletpressure:Double?
103
103
104
104
/// The average visibility in miles, capped at `10`.
105
-
publicletvisibility:Float?
105
+
publicletvisibility:Double?
106
106
107
107
/// The columnar density of total atomspheric ozone at the given time in Dobson units.
0 commit comments