summaryrefslogtreecommitdiffstats
path: root/nws/nws.go
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2022-05-15 22:40:46 -0400
committersiddharth <s@ricketyspace.net>2022-05-15 22:40:46 -0400
commitc89871fd1ece24833d5ef01d2fc2b0a3df0837f2 (patch)
tree850e285745237781e507c44fd7f2a038a6eef380 /nws/nws.go
parent2f1890fed1ac5d099e8c1c19d4b627c21da4c479 (diff)
nws: points -> Points
Diffstat (limited to 'nws/nws.go')
-rw-r--r--nws/nws.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/nws/nws.go b/nws/nws.go
index 02b4d75..1ae7df5 100644
--- a/nws/nws.go
+++ b/nws/nws.go
@@ -32,8 +32,8 @@ func (e NWSPointsError) Error() string {
return fmt.Sprintf("%d: %s: %s", e.Status, e.Type, e.Detail)
}
-// NWS API's `/points` endpoint.
-func points(lat, lng float32) (*NWSPoints, error) {
+// NWS `/points` endpoint.
+func Points(lat, lng float32) (*NWSPoints, error) {
url := fmt.Sprintf("https://api.weather.gov/points/%.4f,%.4f", lat, lng)
resp, err := client.Get(url)
if err != nil {