summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nws/nws.go1
-rw-r--r--nws/nws_test.go3
2 files changed, 4 insertions, 0 deletions
diff --git a/nws/nws.go b/nws/nws.go
index 243506b..1d6e061 100644
--- a/nws/nws.go
+++ b/nws/nws.go
@@ -13,6 +13,7 @@ import (
)
type NWSPointProperties struct {
+ GridId string
GridX int
GridY int
ForecastLink string `json:"forecast"`
diff --git a/nws/nws_test.go b/nws/nws_test.go
index db288d2..be1034d 100644
--- a/nws/nws_test.go
+++ b/nws/nws_test.go
@@ -17,6 +17,9 @@ func TestPoints(t *testing.T) {
if np.Properties.ForecastHourlyLink != "https://api.weather.gov/gridpoints/CLE/33,42/forecast/hourly" {
t.Errorf("points: forcecast link: '%v'", np.Properties.ForecastHourlyLink)
}
+ if np.Properties.GridId != "CLE" {
+ t.Errorf("points: gridid: %v", np.Properties.GridId)
+ }
if np.Properties.GridX != 33 {
t.Errorf("points: gridx: %v", np.Properties.GridX)
}