Coder Social home page Coder Social logo

allcities's Introduction

AllCities

**所有城市与地区json数据

说明

本人Google了一下,发现如此常用的数据网上居然没有分享的!??于是想到京东的收货地址比较详细, 应该可以抓取。于是就有了此 Repo

使用说明

cities.json 是整理好的,去掉一些无意义的数据之后的 数据文件,它是一个数组,其中:

  • name 是城市(地区)名称
  • id 是它在文件中的唯一标识
  • pid 是它的上级行政机构的名称

如:

{     
    name: "通化市",
    id: 657,
    pid: 9
},

上级为_9_,而 id9 的是 吉林,所以它是吉林省-->通化市

为了方便查询与使用,请自行将它处理为 sqlite 数据库,这样你就可以用 where pid = ? 来级联向下找城市了

allcities's People

Contributors

rickytan avatar

Watchers

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