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

# weather(for:)

Returns the weather forecast for the requested location.

## Declaration

```swift
final func weather(for location: CLLocation) async throws -> Weather
```

## Parameters

- `location`: The requested location.

## Return Value

Return Value The aggregate weather.

## Discussion

Discussion note: Weather data error WeatherError

## See Also

### Obtaining forecasts

- [weather(for:including:_:)](weatherkit/weatherservice/weather(for:including:_:).md)
- [weather(for:including:_:_:)](weatherkit/weatherservice/weather(for:including:_:_:).md)
- [weather(for:including:_:_:_:)](weatherkit/weatherservice/weather(for:including:_:_:_:).md)
- [weather(for:including:_:_:_:_:)](weatherkit/weatherservice/weather(for:including:_:_:_:_:).md)
- [weather(for:including:_:_:_:_:_:)](weatherkit/weatherservice/weather(for:including:_:_:_:_:_:).md)
- [shared](weatherkit/weatherservice/shared.md)
