---
id: "lv_postcode"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["geo", "pii", "common"]
country: ["LV"]
langs: ["lv"]
quality: 75
url: "http://registry.apicrafter.io/datatype/lv_postcode"
---

# Latvia postal code (`lv_postcode`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Postal code in Latvia: the letters LV, a hyphen and four digits.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: Latvia (LV)
- Languages: Latvian (lv)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^LV-\d{4}$
```

## Examples

- `LV-1073`
- `LV-1000`
- `LV-107` (invalid example) — too short

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Postal_codes_in_Latvia>
- other: <https://chromium-i18n.appspot.com/ssl-address/data/LV>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/lv_postcode.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/LV/geo/lv_postcode.yaml>
