From 8252cfe094ef0664631ea1d3f51a2b5f8b69ea86 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Tue, 7 Jun 2022 01:06:09 -0400 Subject: photon: update `Geocode` Cache weather for each matching location. --- photon/photon.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'photon/photon.go') diff --git a/photon/photon.go b/photon/photon.go index 44b4b92..8c85a09 100644 --- a/photon/photon.go +++ b/photon/photon.go @@ -13,6 +13,7 @@ import ( "strings" "ricketyspace.net/peach/client" + "ricketyspace.net/peach/nws" ) // Coordinates. @@ -129,6 +130,7 @@ func Geocode(location string) ([]Coordinates, error) { names[c.Name] = true mCoords = append(mCoords, c) + go nws.CacheWeather(c.Lat, c.Lng) } return mCoords, nil } -- cgit v1.2.3