AWFEarthquake

Objective-C

@interface AWFEarthquake : AWFGeographicObject

Swift

class AWFEarthquake : AWFGeographicObject

An AWFEarthquake object that represents data returned by the earthquakes endpoint of the Aeris Weather API.

Location

  • USGS region in which the event occurred.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *region;

    Swift

    var region: String? { get set }

Earthquake Details

  • USGS earthquake id.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *quakeId;

    Swift

    var quakeId: String? { get set }
  • GMT date when the event took place.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSDate *timestamp;

    Swift

    var timestamp: Date? { get set }
  • GMT date when the event data was last updated.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSDate *updatedAt;

    Swift

    var updatedAt: Date? { get set }
  • Magnitude of the earthquake.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat magnitude;

    Swift

    var magnitude: CGFloat { get set }
  • Earthquake category based on magnitude.

    • mini: 0 - 2.9
    • minor: 3 - 3.9
    • light: 4 - 4.9
    • moderate: 5 - 5.9
    • strong: 6 - 6.9
    • major: 7 -7.9
    • great: 8+

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *type;

    Swift

    var type: String? { get set }
  • Depth of the earthquake in kilometers.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat depthKM;

    Swift

    var depthKM: CGFloat { get set }
  • Depth of the earthquake in miles.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat depthMI;

    Swift

    var depthMI: CGFloat { get set }