Datatypes › Thailand › Geographic identifiers
Thai province code
ID th_province_code
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Two-digit code of a province of Thailand in the administrative area codes of the Department of Provincial Administration, the same digits as in ISO 3166-2 (TH-10 is Bangkok, TH-83 Phuket). The first digit is the region group: 1 and 2 the centre and east, 3 and 4 the north-east, 5 and 6 the north, 7 the west, 8 and 9 the south. There are 77 codes; 28, 29, 59, 68, 69, 78, 79 and 87 to 89 are not used. The code starts the district code (th_district_code), the subdistrict code (th_subdistrict_code) and the postal code area.
- Categories
- Geographic identifiers, Government related
- Countries
- Thailand
- Languages
- Common to most languages
- Quality
- 90/100 · missing: mapping (Wikidata, Schema.org, ...)
- Metacrafter rules
- 1 rule (1 by field name, 0 by value)
thprovincecodebynamefield, th/th_codes.yaml
- Supported by tools
- metacrafter
Regular expression
^(?:1[0-9]|2[0-7]|[34][0-9]|5[0-8]|6[0-7]|7[0-7]|8[0-6]|9[0-6])$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 10 | Bangkok |
| 83 | Phuket |
| 55 | Nan |
| 28 invalid | not assigned |
Translations
| Language | Name | Description |
|---|---|---|
| Thai | รหัสจังหวัด | |
| Russian | Код провинции Таиланда |
Sources
- wikipedia: ISO 3166-2:TH (en.wikipedia.org)
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/th_province_code - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/TH/geo/th_province_code.yamlon GitHub