---
id: "ca_feduid"
kind: "datatype"
status: "draft"
is_pii: false
name: "Canadian federal electoral district code (FEDUID)"
regexp: "^(?:1[0-3]|24|35|4[6-8]|59|6[0-2])\\d{3}$"
categories: ["geo", "government"]
country: ["CA"]
langs: ["en", "fr"]
quality: 90
url: "https://registry.apicrafter.io/datatype/ca_feduid"
---

# Canadian federal electoral district code (FEDUID) (`ca_feduid`)

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

Five-digit code of a federal electoral district (riding) of Canada: the two-digit Standard Geographical Classification code of the province or territory (35 Ontario, 59 British Columbia) and a three-digit number of the district within it. Elections Canada and Statistics Canada use the same codes; a code belongs to one representation order (2003, 2013, 2023), so the same number can name different districts in files of different years. Boundary files and census profiles name the field FEDUID, election studies feduid, FED or riding.

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Canada (CA)
- Languages: English (en), French (fr)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:1[0-3]|24|35|4[6-8]|59|6[0-2])\d{3}$
```

## Examples

- `35076` — Orléans, Ontario, 2013 representation order
- `59034` — a district of British Columbia
- `10002` — a district of Newfoundland and Labrador
- `99001` (invalid example) — 99 is not a province code
- `3507` (invalid example) — four digits

## Metacrafter rules

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

- `cafeduidbyname` (field, `ca/ca_stats.yaml`)

## Supported by tools

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

## Translations

- fr: Code de circonscription électorale fédérale du Canada (CEFIDU)
- ru: Код федерального избирательного округа Канады (FEDUID)

## Sources

- doc: <https://www150.statcan.gc.ca/n1/pub/92f0138m/92f0138m2019001-eng.htm>
- wikipedia: <https://en.wikipedia.org/wiki/Electoral_district_(Canada)>

## Quality

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

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