Skip to content

XieConnect/chinese_regions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChineseRegions

Provides all chinese regions, cities and districts


INSTALL


script/plugin install git://github.com/flyerhzm/chinese_regions.git
rake db:migrate

USAGE


Region.all => ['北京市', '山东省', '广西壮族自治区', ...]
City.all => ['北京市', '杭州市', '上海市', ...]
District.all => ['西城区', '静安区', '西湖区', ...]
Region.find(11).cities => ['杭州市', '宁波市', '温州市', ...]
City.find(73).districts => ['黄浦区','卢湾区', '徐汇区', ...]

Copyright © 2009 Richard Huang ([email protected]), released under the MIT license

About

provides all chinese regions, cities and districts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published