AWFIndexPeriod
@interface AWFIndexPeriod : AWFGeographicObject
An AWFIndexPeriod
object represents data returned by the indices endpoint
of the Aeris Weather API.
-
The current index item based on the latest observation for the location.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) AWFIndex *current;
Swift
var current: AWFIndex? { get set }
-
An array of index items for periods in the future. This value will be
nil
by default. In order to obtain forecast indices, you must provide atoDate
with your request options. -
Minimum index value allowed for the index type.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat rangeMin;
Swift
var rangeMin: CGFloat { get set }
-
Maximum index value allowed for the index type.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat rangeMax;
Swift
var rangeMax: CGFloat { get set }
-
Index type this period pertains to.
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) AWFIndexDataType type;
Swift
unowned(unsafe) var type: NSString? { get set }
-
Whether or not the index range values are reversed.
By default, the index range is not reversed meaning that the lowest index value corresponds to the lowest risk or severity. When the range is reversed, the lowest index value corresponds to the greatest risk or severity.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL isReverse;
Swift
var isReverse: Bool { get set }