GithubHelp home page GithubHelp logo

area-data's Introduction

area-data

**省、市、区、街道数据

Installation

Install the pkg with npm:

npm install area-data --save

or yarn

yarn add area-data

or bower

bower install area-data

获取数据

import AreaData from 'area-data';

AreaData['86']
// 所有省份:{'110000': '北京市', '120000': '天津市', '130000': '河北省', ...}

AreaData['130000']
// 对应省份的所有城市:{'130100': '石家庄市', '130200': '唐山市', '130300': '秦皇岛市', ...}

AreaData['130200']
// 对应市的所有县区:{'130201': '市辖区', '130202': '路南区', '130203': '路北区', ...}

AreaData['130202']
// 对应县区的所有街道:{'130202001000': '学院南路街道', '130202002000': '友谊街道', ...}

官方数据(截止到2016.07.31): 县及以上区域划分 城乡区域划分

数据来源: 最新省市区数据来自 china-area-data, 最新街道数据来自 Administrative-divisions-of-China.

LICENSE

MIT

area-data's People

Contributors

dwqs 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.