Contents

DailyWeatherStatisticsQuery

A structure that encapsulates a generic daily weather statistics dataset request.

Declaration

struct DailyWeatherStatisticsQuery<T> where T : Decodable, T : Encodable, T : Equatable, T : Sendable

Overview

Use the properties of this structure to create a daily weather statistics query. You can combine multiple queries into a single WeatherService request.

Here’s how to get daily weather statistics for New York City:

let (dailyPrecipitationStatistics, dailyTemperatureStatistics) = try await service.dailyStatistics(for: newYork, spanning: timeInterval, including: .precipitation, .temperature)

Topics

Type Properties