diff --git a/types.go b/types.go index 725c40c..a074627 100644 --- a/types.go +++ b/types.go @@ -80,8 +80,8 @@ type jsonBracket struct { } type jsonNamedBracket struct { - Bracket string `json:"bracket"` - Name string `json:"name"` + Bracket jsonBracket `json:"bracket"` + Name string `json:"name"` } type jsonQueryResponse struct { @@ -131,6 +131,12 @@ type geoData struct { longitude float64 } +type namedBracket struct { + name string + min float64 + max float64 +} + type record struct { accessCount int closestStn string