Data model

The database includes the following fields, and is sparse: not every field is populated for every entry. In particular, only code, name_zh and level exist for all entries.

code
The six-digit GB/T 2260-2007 code (int).
name_zh
Name of the region in simplified Chinese (str).
level

Administrative level of the region (int, one of 1, 2, or 3).

See this table for an explanation of the various names for these levels.

name_pinyin
Name of the region rendered in pinyin (str).
name_en
Name of the region in English (str).
alpha
2- or 3-digit uppercase alphabetical code for the region (str).
latitude, longitude
Latitude and longitude of a point within the region (float).