<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WeatherKit",
  "identifier" : "/documentation/WeatherKit/HistoricalComparison",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit20HistoricalComparisonO"
  },
  "title" : "HistoricalComparison"
}
-->

# HistoricalComparison

An enum that represents a recognized comparison in the statistical analysis of a location’s historical weather data.

```
enum HistoricalComparison
```

## Topics

### Enumeration Cases

[`case highTemperature(Trend<UnitTemperature>)`](/documentation/WeatherKit/HistoricalComparison/highTemperature(_:))

The comparison relates to the location’s maximum temperature averaged since ~1970.

[`case lowTemperature(Trend<UnitTemperature>)`](/documentation/WeatherKit/HistoricalComparison/lowTemperature(_:))

The comparison relates to the location’s minimum temperature averaged since ~1970.

[`case precipitationAmount(Trend<UnitLength>)`](/documentation/WeatherKit/HistoricalComparison/precipitationAmount(_:))

The comparison relates to the amount of precipitation at the location averaged over the past 30 days.

[`case snowfallAmount(Trend<UnitLength>)`](/documentation/WeatherKit/HistoricalComparison/snowfallAmount(_:))

The comparison relates to the amount of snowfall at the location averaged over the past 30 days.

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)