mirror of
https://codeberg.org/andyscott/OpenWeather-gRPC-API.git
synced 2024-12-20 12:03:10 -05:00
Update comments
This commit is contained in:
parent
f36a005ad1
commit
0b2d849592
1 changed files with 2 additions and 2 deletions
|
@ -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="
|
||||
|
|
Loading…
Reference in a new issue