Kevin Powell - CommunityKP-C
Kevin Powell - Community3y ago
107 replies
Matt

Weather App

I'm building a simple weather app project. Current, I'm using open-meteo.com's API for weather data. One of the parameters I'm using is weather interpretation codes. The variable documentation is attached (see picture)

My question is, what's the best method at converting code into description? I know there's multiple ways, such as if/else if, case, sets, etc. (I'm assuming using Key / Value)

What would you recommend? Thanks.
image.png
Was this page helpful?