---
title: "weather(for:including:)"
framework: weatherkit
role: symbol
role_heading: Instance Method
path: "weatherkit/weatherservice/weather(for:including:)-5jqwy"
---

# weather(for:including:)

Returns the weather forecast for the requested location.

## Declaration

```swift
@preconcurrency final func weather<each T>(for location: CLLocation, including dataSet: repeat WeatherQuery<each T>) async throws -> (repeat each T) where repeat each T : Sendable
```

## Parameters

- `location`: The requested location.

## Return Value

Return Value The requested weather data set.

## Discussion

Discussion note: Weather data error WeatherError This is a variadic API in which any combination of data sets can be requested and returned as a tuple. Here’s an example: `let (current, minute, hourly, daily, alerts) = try await service.weather(for: newYork, including: .current, .minute, .hourly, .daily, .alerts)`
