Contents

DailyWeatherSummaryQuery

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

Declaration

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

Overview

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

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

let (dailyPrecipitationSummary, dailyTemperatureSummary) = try await service.dailySummary(for: newYork, spanning: timeInterval, including: .precipitation, .temperature)

Topics

Type Properties