Created
March 10, 2023 18:18
-
-
Save ayeshLK/d33b5788b15cc29580193971795e90da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type WeatherItem record { | |
int id; | |
string main; | |
string description; | |
string icon; | |
}; | |
type Main record { | |
decimal temp; | |
decimal feels_like; | |
decimal temp_min; | |
decimal temp_max; | |
int pressure; | |
int humidity; | |
int sea_level; | |
int grnd_level; | |
}; | |
type Wind record { | |
decimal speed; | |
int deg; | |
decimal gust; | |
}; | |
type Sys record { | |
int 'type; | |
int id; | |
string country; | |
int sunrise; | |
int sunset; | |
}; | |
type WeatherReport record { | |
record {| | |
decimal lon; | |
decimal lat; | |
|} coord; | |
WeatherItem[] weather; | |
string base; | |
Main main; | |
int visibility; | |
Wind wind; | |
record {| | |
int all; | |
|} clouds; | |
int dt; | |
Sys sys; | |
int timezone; | |
int id; | |
string name; | |
int cod; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment