---
id: "casgc"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["geo"]
country: ["CA"]
langs: ["en"]
quality: 70
url: "http://registry.apicrafter.io/datatype/casgc"
---

# Standard Geographical Classification (SGC) (`casgc`)

The Standard Geographical Classification (SGC) is a system maintained by Statistics Canada for categorizing and enumerating the census geographic units of Canada. Each geographic area receives a unique numeric code ranging from 1 to 10 digits, which extend telescopically to refer to increasingly small areas.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: Canada (CA)
- Languages: English (en)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
\d{2}(\d{2}(\d{3})?)?
```

## Examples

- `2410043` — Rimouski
- `4604040` — Municipality of Louise

## Mappings

- wikidata: `P3012`

## Sources

- wikidata: <https://www.wikidata.org/wiki/Property:P3012>
- wikipedia: <https://en.wikipedia.org/wiki/Standard_Geographical_Classification_code_(Canada)>

## Quality

Score 70/100. Missing: anchored regexp, negative example, translation, detector coverage.

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