diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-08-07 15:13:23 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-08-07 15:13:23 -0400 |
commit | d8d3a53f04373865197b411f283df728e6111314 (patch) | |
tree | 78088ddf6f52efa2512d00ee8ac55d9de6243ec8 | |
parent | 5ddc92c3556bf04e019a77e7242440e3defd5555 (diff) |
nws: update `GetForecastBundle`
Add `ForecastGrid` to the `ForecastBundle`.
-rw-r--r-- | nws/nws.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 } |