Giter Site home page Giter Site logo

areaandbanks's Introduction

AreaAndBanks

license

抛砖引玉

现在省市区地址的需求越来越多,但是始终缺少一个官方标准,当然 中华人民共和国民政部-中华人民共和国行政区划代码 这里有官方数据, 却不是程序员拿来即用的,开发也不应该在这里浪费时间,所以希望能够有一个统一的标准数据,value和code能够统一真的能够带来极大的便利。 尤其和快递对接的系统多少也会遇到过城市名不匹配的情况吧。 虽然银行支行数据这个使用案例相对较少了,但是标准数据几乎找不到。以上这些数据难道不是应该公开透明且以服务为目的的吗? 所以希望抛砖引玉,有人能整理一个标准数据。

中华人民共和国行政区划:省份、城市、区县、乡镇(街道)

JSON

文件列表 下载地址
银行支行数据 banks.json
银行支行SQL数据 banks.sql
省份数据 provinces.json
城市数据 cities.json
区县数据 areas.json
乡镇(街道)数据 streets.json
“省份、城市” 二级联动数据 pc.json
“省份、城市” 二级联动数据(带编码) pc-code.json
“省份、城市、区县” 三级联动数据 pca.json
“省份、城市、区县” 三级联动数据(带编码) pca-code.json
“省份、城市、区县、乡镇” 四级联动数据 pcas.json
“省份、城市、区县、乡镇” 四级联动数据(带编码) pcas-code.json

省市区数据参考自

modood--Administrative-divisions-of-China 具体更新数据的方式也参考此链接

银行数据说明

  1. 银行支行数据大约10万条,json文件比较大,请谨慎查看
  2. 银行支行SQL 是一个表的完整导出 包括表结构和数据,导入之后你完全可以自己修改相应字段类型以及优化长度和索引等。 创建表SQL:(不需要单独运行,因为sql文件会创建表 banks,如果你本来就有 banks 这个表,记得备份下,因为sql本身:DROP TABLE IF EXISTS banks;)
CREATE TABLE `banks` (
  `sub_branch_name` varchar(255) NOT NULL,
  `sub_branch_id` varchar(50) DEFAULT NULL,
  `province_id` int(11) DEFAULT NULL,
  `province` varchar(255) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `bank_name` varchar(255) NOT NULL,
  `bank_id` int(11) DEFAULT NULL,
  KEY `idx_banks_name` (`bank_id`,`province_id`,`city_id`,`sub_branch_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
  1. 银行支行数据有很多数据平台支持接口调用,你可以自行搜索相关平台,这里离线的数据已经较老了(当然银行这个数据更新是不频繁的,勉强也能用)。

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

this repo is released under the WTFPL – Do What the Fuck You Want to Public License.

areaandbanks's People

Contributors

alawating-rex avatar

Watchers

 avatar

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.