HourlyWeatherStatisticsQuery
A structure that encapsulates a generic hourly weather statistics dataset request.
Declaration
struct HourlyWeatherStatisticsQuery<T> where T : Decodable, T : Encodable, T : Equatable, T : SendableOverview
Use the properties of this structure to create an hourly weather statistics query. You can combine multiple queries into a single WeatherService request.
Here’s how to get hourly weather statistics for New York City:
let (hourlyTemperatureStatistics) = try await service.hourlyStatistics(for: newYork, spanning: timeInterval, including: .temperature)