GithubHelp home page GithubHelp logo

chinese_regions_db's Introduction

Chinese regions database

Chinese regions database in sqlite3 format(NBSC last-update: 2014-01-16)

Getting Started

to install nodejs dependencies:

npm --registry=http://registry.cnpmjs.org install

and type following command to dump database into json files:

node dump.js

Example projects

basic API for region picker.

a jQuery plugin which provides sets of wonderful user experience.

Database schema

regions table

  id TEXT PRIMARY KEY ASC, 
  parent_id TEXT, 
  name TEXT, 
  alias TEXT, 
  pinyin TEXT, 
  abbr TEXT, 
  zip TEXT, 
  level INTEGER

dumped JSON object struct:

{
  i: '310000', //ID, the unique code of region
  n: '上海市', //Name, the fullname of region
  a: '上海', //Alias, the simplfied name of region
  b: 'SH', //Abbr, the simplfied chinese Pinyin of region
  y: 'ShangHai', //Pinyin, the chinese Pinyin of region
  z: '200000', //Zipcode, the post-code of region
}

Stats

Version Provinces Cities Suburbs Total
20130831 34 469 2814 3317
20140116 34 469 2816 3319

Changes of v2014.01.16

New Regions:

扎赉诺尔区,扶余市,溧水区,高淳区,姜堰区,清新区,潮安区,揭东区,临桂区,龙圩区,福绵区,江州区,前锋区,达川区,恩阳区,观山湖区,弥勒市,双湖县,海东市,乐都区,平安县,民和回族土族自治县,互助土族自治县,化隆回族自治县,循化撒拉族自治县,玉树市,阿拉山口市

Removed Regions:

扶余县,白下区,下关区,溧水县,高淳县,姜堰市,四方区,胶南市,清新县,潮安县,揭东县,临桂县,蝶山区,江洲区,达县,小河区,弥勒县,海东地区,平安县,民和回族土族自治县,乐都县,互助土族自治县,化隆回族自治县,循化撒拉族自治县,玉树县

Use the upgrade_to_20140116.sql to upgrade your database.

Reference

最新县及县以上行政区划代码(截止2013年8月31日) National bureau of statistics of china

最新县及县以上行政区划代码(截止2012年10月31日)National bureau of statistics of china

chinese_regions_db's People

Contributors

bastengao avatar xixilive avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chinese_regions_db's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.