No commit activity in last 3 years
No release in over 3 years
Unidom (UNIfied Domain Object Model) is a series of domain model engines. The China Contact domain model engine includes Mobile Phone Number and its relative models. Unidom (统一领域对象模型)是一系列的领域模型引擎。中国行政区划领域模型引擎包括中国大陆的移动电话号码及其相关的模型。
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Unidom Region China 中国行政区划领域模型引擎

License Gem Version

Unidom (UNIfied Domain Object Model) is a series of domain model engines. The China Region domain model engine includes the Region model and its migration. Unidom (统一领域对象模型)是一系列的领域模型引擎。中国行政区划领域模型引擎包括中国大陆的行政区划模型及其数据迁移脚本。

Recent Update

Check out the Road Map to find out what's the next. Check out the Change Log to find out what's new. This gem is deprecated, please use unidom-geo-china instead.

Usage in Gemfile

gem 'unidom-region-china'

Run the Database Migration

rake db:migrate

Import Data

bundle exec rake unidom:region:china:import file=/china-region-data/NBS-county/20141031.csv from_date=2014-10-31 scheme_id= scheme_type=

Call the Model

Unidom::Region::China::Region.root_level # All the 31 province-level regions including Beijing, Tianjin, etc.
Unidom::Region::China::Region.numeric_coded_as('120000').valid_at.alive.first # Tianjin (天津)