---
id: "nl_bag_woonplaats_code"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo"]
country: ["NL"]
langs: ["common"]
quality: 83
url: "http://registry.apicrafter.io/datatype/nl_bag_woonplaats_code"
---

# Dutch BAG place code (woonplaatscode) (`nl_bag_woonplaats_code`)

> **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.

Four-digit code of a place (woonplaats) in the Dutch register of addresses and buildings (BAG), from 0001 to 9999, as in 3594 for Amsterdam. A woonplaats is the named place of an address and is not the same as a municipality, which can contain several places.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Netherlands (NL)
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?!0000)\d{4}$
```

## Examples

- `3594` — Amsterdam
- `35940` (invalid example) — Five digits

## Mappings

- wikidata: `P981`

## Translations

- nl: Woonplaatscode (BAG)
- ru: Код населённого пункта в реестре BAG (Нидерланды)

## Sources

- doc: <https://imbag.github.io/catalogus/hoofdstukken/attributen--relaties>
- wikidata: <https://www.wikidata.org/wiki/Property:P981>

## Quality

Score 83/100. Missing: second example, detector coverage.

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