summaryrefslogtreecommitdiffstats
path: root/weather/weather.go
diff options
context:
space:
mode:
Diffstat (limited to 'weather/weather.go')
-rw-r--r--weather/weather.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weather/weather.go b/weather/weather.go
index 0e981a1..456ff46 100644
--- a/weather/weather.go
+++ b/weather/weather.go
@@ -47,8 +47,10 @@ type WeatherTimeline struct {
}
type Alert struct {
+ AreaDesc string
Event string
Severity string
+ Headline string
Description []string
Instruction []string
}
@@ -132,8 +134,10 @@ func NewWeather(lat, lng float32) (*Weather, error, int) {
continue // Duplicate; skip.
}
a := Alert{
+ AreaDesc: strings.ReplaceAll(f.Properties.AreaDesc, ";", ","),
Event: f.Properties.Event,
Severity: f.Properties.Severity,
+ Headline: f.Properties.Headline,
Description: strings.Split(f.Properties.Description, "\n\n"),
Instruction: strings.Split(f.Properties.Instruction, "\n\n"),
}