资源简介

史上最全的map数据,三级数据下钻,全国->省->市,全国->直辖市->县级市 例如:第一级市全国地图,下一级为北京地图数据,再下一级为通州区数据。珍藏版,花费了很久很久才整理的最全最实用的的资料。做地图开发,不需要再找其他资源了

资源截图

代码片段和文件信息

import json
import pinyin
import codecs
from jinja2 import Environment FileSystemLoader


if __name__ == ‘__main__‘:
    with codecs.open(‘profile.json‘ ‘r‘ ‘utf-8‘) as f:
        content = json.load(f)

    with codecs.open(‘registry.json‘ ‘r‘ ‘utf-8‘) as f:
        registry = json.load(f)

    jinja2_env = Environment(
        loader=FileSystemLoader(‘./templates‘)
        keep_trailing_newline=True)

    readme = jinja2_env.get_template(‘readme.md.jj2‘)
    sorted_provinces = sorted(content.keys()
                              key=lambda x: pinyin.get(x format=‘numerical‘))
    md = readme.render(profiles=content
                       sorted_provinces=sorted_provinces
                       file_map=registry[‘PINYIN_MAP‘]
                       count=len(registry[‘FILE_MAP‘]))
    with codecs.open(‘README.md‘ ‘w‘ ‘utf-8‘) as out:
        out.write(md)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-31 16:20  echarts-china-counties-js-1.0.1\
     文件          13  2018-07-31 16:20  echarts-china-counties-js-1.0.1\.gitignore
     目录           0  2018-07-31 16:20  echarts-china-counties-js-1.0.1\.moban.d\
     文件          29  2018-07-31 16:20  echarts-china-counties-js-1.0.1\.moban.d\custom_readme.md.jj2
     文件         252  2018-07-31 16:20  echarts-china-counties-js-1.0.1\.moban.yml
     文件         200  2018-07-31 16:20  echarts-china-counties-js-1.0.1\CHANGELOG.md
     文件      428070  2018-07-31 16:20  echarts-china-counties-js-1.0.1\README.md
     目录           0  2018-07-31 16:20  echarts-china-counties-js-1.0.1\build\
     文件          57  2018-07-31 16:20  echarts-china-counties-js-1.0.1\build\constants.js
     目录           0  2018-07-31 16:20  echarts-china-counties-js-1.0.1\build\tasks\
     文件        4794  2018-07-31 16:20  echarts-china-counties-js-1.0.1\build\tasks\build.js
     文件        1815  2018-07-31 16:20  echarts-china-counties-js-1.0.1\build\tasks\split.js
     文件         348  2018-07-31 16:20  echarts-china-counties-js-1.0.1\changelog.yml
     文件       60718  2018-07-31 16:20  echarts-china-counties-js-1.0.1\china.js
     文件         723  2018-07-31 16:20  echarts-china-counties-js-1.0.1\demo.js
     文件         195  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js.yml
     目录           0  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\
     文件        7542  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\000e16298fc41cb5807839f46869d57d.js
     文件        8574  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\0011eb552d016d16a0cff5d231aa5dd2.js
     文件        5013  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\0023e880dd7c8c58112feac84a3f480f.js
     文件        8691  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\002448b42c1d2c5e68aaa70b3bcc79d8.js
     文件        6830  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\004c8878b723e125d381013389acf2a8.js
     文件        9627  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\005808ef409f8e02cbeb995808f532bd.js
     文件       15741  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\005f40740ded6908da813e8f5d6f577d.js
     文件        3276  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\006e872b838bc5c9655ac3ae4c89f26e.js
     文件        3556  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\00bcf4d657cf38cbfb766212bdb7d2f7.js
     文件        8689  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\00ea539da144fd29541dfdebb3a5eeca.js
     文件        2739  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\010abd8149f3702cc0c21df8d4c0e821.js
     文件       10960  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\0128188fc048fb0da96e79968a836fc2.js
     文件        5005  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\0128ddcc9f2a536dcf5849bfa8687f8e.js
     文件       10853  2018-07-31 16:20  echarts-china-counties-js-1.0.1\echarts-china-counties-js\012e1a496d193eb5315926cd4413c991.js
............此处省略6205个文件信息

评论

共有 条评论