Skip to content

pycensus.census.countries.taiwan.constants

Static Taiwan geography reference data shared by every Taiwan census source.

Technical aspects

Taiwan's administrative divisions (native levels used throughout this module): - Nation (country level) - County/city (縣市) -- 22 units: 6 special municipalities (直轄市: 臺北市/新北市/桃園市/臺中市/臺南市/高雄市), 3 provincial cities (省轄市: 基隆市/新竹市/嘉義市), 13 counties (縣), including outlying Kinmen (金門縣) and Lienchiang/Matsu (連江縣). This is Taiwan's top subnational tier -- there is no separate state/province layer above it. - District (鄉鎮市區) -- townships/districts within a county/city. - Village (村里) -- the finest tier MOI publishes population for.

COUNTY_CODES below is not looked up from a code table -- it was built directly from the real, live MOI RIS API response used by :mod:pycensus.taiwan.api/:mod:pycensus.taiwan.moi.loader (GET https://www.ris.gov.tw/rs-opendata/api/v1/datastore/ODRP013/11407, verified 2026-08-20): the first 5 digits of every row's district_code field, paired with the first 3 characters of that row's site_id field (the county/city name prefix of "", e.g. "新北市板橋區" -> "新北市"). All 22 codes that appear in the live response are listed here; nothing was guessed or filled in from a naming convention.

Source

https://www.ris.gov.tw/ (中華民國內政部戶政司, Department of Household Registration, Ministry of the Interior)