Giter VIP home page Giter VIP logo

Comments (4)

bsed avatar bsed commented on May 13, 2024 1

haha

from administrative-divisions-of-china.

fundon avatar fundon commented on May 13, 2024

可以把数据压缩成这种格式:

{
  "11": [
    "北京市",
    {
      "1101": [
        "市辖区",
        {
          "110101": "东城区",
          "110102": "西城区",
          "110105": "朝阳区",
          "110106": "丰台区",
          "110107": "石景山区",
          "110108": "海淀区",
          "110109": "门头沟区",
          "110111": "房山区",
          "110112": "通州区",
          "110113": "顺义区",
          "110114": "昌平区",
          "110115": "大兴区",
          "110116": "怀柔区",
          "110117": "平谷区",
          "110118": "密云区",
          "110119": "延庆区"
        }
      ]
    }
  ],
  "12": [
    "天津市",
    {
      "1201": [
        "市辖区",
        {
          "120101": "和平区",
          "120102": "河东区",
          "120103": "河西区",
          "120104": "南开区",
          "120105": "河北区",
          "120106": "红桥区",
          "120110": "东丽区",
          "120111": "西青区",
          "120112": "津南区",
          "120113": "北辰区",
          "120114": "武清区",
          "120115": "宝坻区",
          "120116": "滨海新区",
          "120117": "宁河区",
          "120118": "静海区",
          "120119": "蓟州区"
        }
      ]
    }
  ]
}

pca-code.json 压缩后,大小为 74k,原来为 129k。

from administrative-divisions-of-china.

bruceleedrupal avatar bruceleedrupal commented on May 13, 2024

@fundon 还是得保留 childs,不然对这数据在进行使用或二次处理将变得非常麻烦

from administrative-divisions-of-china.

modood avatar modood commented on May 13, 2024

@fundon 蔡神 👍 PRs are always welcome~~

from administrative-divisions-of-china.

Related Issues (20)

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.