Skip to content

Instantly share code, notes, and snippets.

@ayeshLK
Created March 10, 2023 18:18
Show Gist options
  • Save ayeshLK/d33b5788b15cc29580193971795e90da to your computer and use it in GitHub Desktop.
Save ayeshLK/d33b5788b15cc29580193971795e90da to your computer and use it in GitHub Desktop.
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