AWFRiver
Objective-C
@interface AWFRiver : AWFGeographicObject
Swift
class AWFRiver : AWFGeographicObject
An AWFRiver object represents data returned by the rivers endpoint
of the Aeris Weather API.
-
The river gauge identifier.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *stationId;Swift
var stationId: String? { get set } -
GMT date for the observation.
Declaration
Objective-C
@property (nonatomic, strong) NSDate *_Nonnull timestamp;Swift
var timestamp: Date { get set } -
The latest river observation.
Declaration
Objective-C
@property (nonatomic, strong, nullable) AWFRiverObservation *obs;Swift
var obs: AWFRiverObservation? { get set } -
The latest river observation from a secondary sensor when the guage includes a backup. This value is typically
nilsince most guages do not include backups.Declaration
Objective-C
@property (nonatomic, strong, nullable) AWFRiverObservation *secondaryObs;Swift
var secondaryObs: AWFRiverObservation? { get set } -
The current river/lake status:
out_of_service: Gauge is known to be out of serviceobs_not_current: Gauge has not reported updated observations recentlynot_defined: Gauge is reporting observations but has no action/flooding levels defined and cannot determine if floodinglow_threshold: Gauge is reporting levels below the defined low water thresholdno_flooding: Gauge is reporting observations below flood and action levelsaction: Gauge is reporting observations at or above action levels and near flood stageminor: Gauge is reporting levels at or above the defined minor flood levelmoderate: Gauge is reporting levels at or above the defined moderate flood levelmajor: Gauge is reporting levels at or above the defined major flood level
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *status;Swift
var status: String? { get set } -
The numeric code corresponding to the current river/lake status:
-1: out_of_service0: obs_not_current1: not_defined3: low_threshold5: no_flooding7: action9: minor11: moderate13: major
Declaration
Objective-C
@property (nonatomic) CGFloat statusCode;Swift
var statusCode: CGFloat { get set } -
Local impacts if available and river is flooding, or
nilif unavailable or river is not flooding.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *impacts;Swift
var impacts: String? { get set } -
The body of water where the gauge is located.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *waterbody;Swift
var waterbody: String? { get set } -
The categories for various flood and action levels at the gauge location when available.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWFRiverCategory *> *_Nonnull categories;Swift
var categories: [AWFRiverCategory] { get set } -
A Boolean indicating whether the gauge contains flooding impacts.
Declaration
Objective-C
@property (nonatomic) BOOL hasImpacts;Swift
var hasImpacts: Bool { get set }
View on GitHub
AWFRiver Class Reference