summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-08-07 15:13:23 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-08-07 15:13:23 -0400
commitd8d3a53f04373865197b411f283df728e6111314 (patch)
tree78088ddf6f52efa2512d00ee8ac55d9de6243ec8
parent5ddc92c3556bf04e019a77e7242440e3defd5555 (diff)
nws: update `GetForecastBundle`
Add `ForecastGrid` to the `ForecastBundle`.
-rw-r--r--nws/nws.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/nws/nws.go b/nws/nws.go
index 4fcc15b..afa7e08 100644
--- a/nws/nws.go
+++ b/nws/nws.go
@@ -108,6 +108,7 @@ type ForecastBundle struct {
Point *Point
Forecast *Forecast
ForecastHourly *Forecast
+ ForecastGrid *ForecastGrid
Alerts *FeatureCollection
}
@@ -160,10 +161,16 @@ func GetForecastBundle(lat, lng float32) (*ForecastBundle, *Error) {
return nil, nwsErr
}
+ g, nwsErr := GetForecastGridData(p)
+ if nwsErr != nil {
+ return nil, nwsErr
+ }
+
return &ForecastBundle{
Point: p,
Forecast: f,
ForecastHourly: fh,
+ ForecastGrid: g,
Alerts: a,
}, nil
}