Type aliases
AlertOptions
AlertOptions: UrgencyOption & XOR<AreaOption, XOR<PointOption, XOR<RegionOption, RegionTypeOption>>>
AlertsFeature
AlertsFeature: { geometry: { coordinates: number[][]; type: "Polygon" }; id: string; properties: { affectedZones: string[]; areaDesc: string; category: string; certainty: string; description: string; effective: string; ends: string; event: string; expires: string; expries: string; geocode: {}; headline: string; id: string; instruction: string; messageType: string; onset: string; parameters?: {}; references: AlertsFeatureReference[]; response: string; sender: string; senderName: string; sent: string; severity: string; status: string; urgency: string } }
Type declaration
geometry: { coordinates: number[][]; type: "Polygon" }
coordinates: number[][]
type: "Polygon"
id: string
properties: { affectedZones: string[]; areaDesc: string; category: string; certainty: string; description: string; effective: string; ends: string; event: string; expires: string; expries: string; geocode: {}; headline: string; id: string; instruction: string; messageType: string; onset: string; parameters?: {}; references: AlertsFeatureReference[]; response: string; sender: string; senderName: string; sent: string; severity: string; status: string; urgency: string }
affectedZones: string[]
areaDesc: string
category: string
certainty: string
description: string
effective: string
ends: string
event: string
expires: string
expries: string
geocode: {}
headline: string
id: string
instruction: string
messageType: string
onset: string
Optional parameters?: {}
references: AlertsFeatureReference[]
response: string
sender: string
senderName: string
sent: string
severity: string
status: string
urgency: string
Area
Area: "AL" | "AK" | "AS" | "AR" | "AZ" | "CA" | "CO" | "CT" | "DE" | "DC" | "FL" | "GA" | "GU" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "PR" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VI" | "VA" | "WA" | "WV" | "WI" | "WY" | "PZ" | "PK" | "PH" | "PS" | "PM" | "AN" | "AM" | "GM" | "LS" | "LM" | "LH" | "LC" | "LE" | "LO"
ClientOptions
ClientOptions: { userAgent?: string }
Type declaration
Optional userAgent?: string
ForecastProperties
ForecastProperties: { elevation: { unitCode: string; value: number }; forecastGenerator: string; generatedAt: string; periods: ForecastPeriod[]; units: string; updateTime: string; updated: string; validTimes: string }
Type declaration
elevation: { unitCode: string; value: number }
unitCode: string
value: number
forecastGenerator: string
generatedAt: string
periods: ForecastPeriod[]
units: string
updateTime: string
updated: string
validTimes: string
ForecastType
ForecastType: "hourly" | "baseline"
Measure
Measure: { unitCode: string; value: number }
Type declaration
unitCode: string
value: number
PointResponse
PointResponse: { properties: { forecast: string; forecastHourly: string; observationStations: string } }
Type declaration
properties: { forecast: string; forecastHourly: string; observationStations: string }
forecast: string
forecastHourly: string
observationStations: string
Region
Region: "AL" | "AT" | "GL" | "GM" | "PA" | "PI"
RegionType
RegionType: "land" | "marine"
Station
Station: { geometry: { coordinates: [number, number]; type: "Point" }; id: string; properties: { name: string; stationIdentifier: string } }
Type declaration
geometry: { coordinates: [number, number]; type: "Point" }
coordinates: [number, number]
type: "Point"
id: string
properties: { name: string; stationIdentifier: string }
name: string
stationIdentifier: string
StationsResponse
Stations
Response
: { features
: Station[] }Urgency
Urgency: "immediate" | "expected" | "future" | "past" | "unknown"