---
title: postalCode
framework: datadetection
role: symbol
role_heading: Instance Property
path: datadetection/datadetector/match/semanticdetails/postaladdress/postalcode
---

# postalCode

An optional string that may contain the postal code component of the address.

## Declaration

```swift
let postalCode: String?
```

## See Also

### Properties that detail parts of a postal address

- [fullAddress](datadetection/datadetector/match/semanticdetails/postaladdress/fulladdress.md)
- [street](datadetection/datadetector/match/semanticdetails/postaladdress/street.md)
- [city](datadetection/datadetector/match/semanticdetails/postaladdress/city.md)
- [state](datadetection/datadetector/match/semanticdetails/postaladdress/state.md)
- [region](datadetection/datadetector/match/semanticdetails/postaladdress/region.md)
- [regionCode](datadetection/datadetector/match/semanticdetails/postaladdress/regioncode.md)
- [label](datadetection/datadetector/match/semanticdetails/postaladdress/label.md)
