From 0b2d84959245cdbcf7505e49dc906363bea8795e Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Wed, 27 Jul 2022 03:09:11 -0400 Subject: [PATCH] Update comments --- server/location.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/location.go b/server/location.go index ee7efb7..f5d6ea8 100644 --- a/server/location.go +++ b/server/location.go @@ -29,8 +29,8 @@ func (s *Server) Location(ctx context.Context, in *pb.RequestLocation) (*pb.Send } // Used internally to fetch precise locations -// Receives gRPC requests (interface) and the location (string) -// Returns the latitude (float32) and longitude (float32) for a given location +// Receives the city name and the server's API key +// Returns the latitude and longitude for the given location func getLocation(city string, key string) (float32, float32) { url := "http://api.openweathermap.org/geo/1.0/direct?q="