Update comments

This commit is contained in:
Andrew Scott 2022-07-27 03:09:11 -04:00
parent f36a005ad1
commit 0b2d849592
Signed by: a
GPG key ID: 3EB62D0BBB8DB381

View file

@ -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="