From d8d3a53f04373865197b411f283df728e6111314 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Sun, 7 Aug 2022 15:13:23 -0400 Subject: nws: update `GetForecastBundle` Add `ForecastGrid` to the `ForecastBundle`. --- nws/nws.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nws') 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 } -- cgit v1.2.3