---
id: "continentcode"
kind: "pattern"
status: "draft"
is_pii: false
categories: ["geo"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/continentcode"
---

# Continent code (two letters) (`continentcode`)

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

Two-letter continent code used by GeoNames and other geographic datasets: AF (Africa), AN (Antarctica), AS (Asia), EU (Europe), NA (North America), OC (Oceania) and SA (South America). Many CSV readers turn NA into a missing value unless told otherwise.

- Pattern of: `continent`
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:AF|AN|AS|EU|NA|OC|SA)$
```

## Examples

- `EU` — Europe
- `AF` — Africa
- `OC` — Oceania
- `AM` (invalid example) — not a continent code

## Mappings

- fta: `CONTINENT.CODE_EN`

## Supported by tools

- `fta`

## Translations

- ru: Код континента

## Sources

- doc: <https://download.geonames.org/export/dump/readme.txt>

## Quality

Score 100/100.

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