I am writing an integration with WeatherKit. I need to get several metrics of the Wind data like WindSpeed, windGust.
In the CurrentWeatherData object I have all this data. However I also need to have the prediction of this metric slightly into the future. For example I need to get these levels in 5mins intervals from up to 30mins from now.
NextHourForecastData seems like the obvious place for this considering it does show Forecasted data everyminute, however only for PrecipitationChance and PrecipitationIntensity. Is there a better dataSet that I can use?
In fact I would already be happy to get the maximum during that period. It seems that the HourlyForecast
would perhaps also be a solution but as far as I can tell this one is always linked to the start of the hour (i.e. XX:00) which makes it complicated to work with, and not very helpful if I'm making the request at XX:15, etc
Alternatively I can get the currentWeather
DataSet for multiple timestamps using the currentAsOf
parameter. This is a crude approach but from what I can see to do that I would need to do multiple API calls which is rather wasteful and not exactly cheap for multiple systems/locations. Is there perhaps a way to make a call for multiple timestamps and/or locations?
Many thanks in advance