Skip to content

Instantly share code, notes, and snippets.

@liudasbar
Created September 14, 2023 22:01
Show Gist options
  • Save liudasbar/f0efcf006266a192bfc2617e99a65d3f to your computer and use it in GitHub Desktop.
Save liudasbar/f0efcf006266a192bfc2617e99a65d3f to your computer and use it in GitHub Desktop.
OpenWeatherMap (One Call API) Types of severe weather (tags) for decoding
enum WeatherHazardType: String, Codable {
case rain = "Rain"
case snowIce = "Snow/Ice"
case thunderstorm = "Thunderstorm"
case fog = "Fog"
case extremeTemperature = "Extreme temperature value"
case wind = "Wind"
case fireWarning = "Fire warning"
case coastalEvent = "Marine event"
case flooding = "Flood"
case avalanches = "Avalanches"
case otherDangers = "Other dangers"
}
@liudasbar
Copy link
Author

OpenWeatherMap uses https://meteoalarm.org/ as source. MeteoAlarm provides a list of hazard types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment