summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nws/nws.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/nws/nws.go b/nws/nws.go
index 7caecc9..ecef792 100644
--- a/nws/nws.go
+++ b/nws/nws.go
@@ -87,6 +87,7 @@ type ForecastBundle struct {
Point *Point
Forecast *Forecast
ForecastHourly *Forecast
+ Alerts *FeatureCollection
}
var pCache *cache.Cache
@@ -143,10 +144,15 @@ func GetForecastBundle(lat, lng float32) (*ForecastBundle, *Error) {
Detail: err.Error(),
}
}
+ a, nwsErr := GetAlerts(lat, lng)
+ if nwsErr != nil {
+ return nil, nwsErr
+ }
return &ForecastBundle{
Point: p,
Forecast: f,
ForecastHourly: fh,
+ Alerts: a,
}, nil
}