---
id: "ch_ewid"
kind: "datatype"
status: "draft"
is_pii: false
name: "Swiss federal dwelling identifier (EWID)"
regexp: "^(?:[1-9]\\d?|[1-8]\\d{2}|900)$"
categories: ["realestate", "government"]
country: ["CH"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ch_ewid"
---

# Swiss federal dwelling identifier (EWID) (`ch_ewid`)

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

Number of a dwelling inside its building in the Swiss Federal Register of Buildings and Dwellings (GWR). It is a whole number from 1 to 900 and identifies a dwelling only together with the EGID of the building, so tables carry both columns.

- Parent datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Real estate (realestate), Government related (government)
- Countries: Switzerland (CH)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:[1-9]\d?|[1-8]\d{2}|900)$
```

## Examples

- `1` — the first dwelling of a building
- `12`
- `901` (invalid example) — above the range of the register
- `0` (invalid example)

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `chewidbyname` (field, `ch/ch_codes.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- de: Eidgenössischer Wohnungsidentifikator (EWID)
- fr: Identificateur fédéral de logement (EWID)
- ru: Федеральный идентификатор жилища Швейцарии (EWID)

## Sources

- doc: <https://dam-api.bfs.admin.ch/hub/api/dam/assets/7008785/master>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/ch_ewid.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CH/realestate/ch_ewid.yaml>
