WeatherKit - conditionCode rules

Hello,

We’re using the Apple WeatherKit API in our application and would like to better understand how the conditionCode field is determined in the hourly data.

In particular, we have encountered cases where both rain and strong winds occurred within the same hour, but the conditionCode returned was related to wind (e.g. windy), even though rain was present and more relevant to our use case.

Could you please clarify:

What is the logic or prioritization used by WeatherKit when selecting the conditionCode for an hourly period that includes multiple weather events?

Is rain ever prioritized over wind in this field? If so, under what conditions?

Since precipitation has more impact for our analyses and decision-making than wind, understanding how this field is computed is important for us.

Thank you in advance for your help.

Best regards,

WeatherKit - conditionCode rules
 
 
Q