src/app/network/weather/weather.ts
Weather conditions data.
Properties |
|
description |
description:
|
Type : string
|
icon |
icon:
|
Type : string
|
Optional |
The code of the icon. |
rainIntensity |
rainIntensity:
|
Type : number
|
Optional |
Millimeters. |
snowIntensity |
snowIntensity:
|
Type : number
|
Optional |
Millimeters. |
visibility |
visibility:
|
Type : number
|
Optional |
Meters. |
export interface WeatherConditions {
description: string;
/**
* The code of the icon.
*/
icon?: string;
/**
* Meters.
*/
visibility?: number;
/**
* Millimeters.
*/
rainIntensity?: number;
/**
* Millimeters.
*/
snowIntensity?: number;
}
export enum WeatherDescription {
clearSky = 'clear sky',
fewClouds = 'few clouds',
scatteredClouds = 'scattered clouds',
brokenClouds = 'broken clouds',
showerRain = 'shower rain',
rain = 'rain',
thunderstorm = 'thunderstorm',
snow = 'snow',
mist = 'mist',
}