Contents

WeatherQuery

A structure that encapsulates a generic weather dataset request.

Declaration

struct WeatherQuery<T>

Overview

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

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

let (hourly, daily, alerts) = try await service.weather(for: newYork, including: .hourly, .daily, .alerts)

Topics

Creating queries

Type Properties

See Also

Requests