Skip to main content

pyUnit-map

地图模块

安装

pip install pyunit-map

使用百度地图获取信息

from pyunit_map import BaiDuMap
if __name__ == '__main__':
    bd = BaiDuMap('景区', '黔东南苗族侗族自治州')
    # bd.save_execl('./景区') #保存execl文件
    print(bd.json) # 打印json格式
    print(bd.total_data) # 打印整理的所有数据

下载某一个省下面所有的景区,比如贵州省

from pyunit_map import province,BaiDuMap
if __name__ == '__main__':
    bd=BaiDuMap()
    for gz in province.GuiZhou:
        bd.update_title('景区', gz)
    bd.save_execl('./贵州下所有的景区')

文本结果

名字:西江千户苗寨	坐标:108.179706,26.500228	地址:贵州省黔东南苗族侗族自治州雷山县黔东南苗族侗族自治州雷山县西江镇南贵村
名字:镇远古城水上游	坐标:108.436202,27.054738	地址:贵州省黔东南苗族侗族自治州镇远县贵州省黔东南苗族侗族自治州舞阳镇步行街县委对面禹门码头
名字:镇远古城	坐标:108.434873,27.056047	地址:贵州省黔东南苗族侗族自治州镇远县兴隆街21号
名字:肇兴侗寨	坐标:109.173823,25.912452	地址:贵州省黔东南苗族侗族自治州黎平县黔东南苗族侗族自治州黎平县202省道肇兴侗寨景区
名字:远古城旅游景区	坐标:108.424327,27.056491	地址:贵州省黔东南苗族侗族自治州镇远县贵州省黔东南苗族侗族自治州镇远县民主街196附近
名字:丹寨万达小镇	坐标:107.813295,26.204159	地址:贵州省黔东南苗族侗族自治州丹寨县丹寨县东湖湖畔
名字:加榜梯田	坐标:108.593352,25.608761	地址:贵州省黔东南苗族侗族自治州从江县从江县加榜乡加车村
名字:岜沙苗寨	坐标:108.874765,25.72667	地址:贵州省黔东南苗族侗族自治州从江县贵州省黔东南从江县岜沙苗寨
名字:凯里苗侗风情园	坐标:107.982339,26.56171	地址:贵州省黔东南苗族侗族自治州凯里市黔东南苗族侗族自治州凯里市风情大道
名字:青龙洞	坐标:108.440116,27.055628	地址:贵州省黔东南苗族侗族自治州镇远县黔东南苗族侗族自治州镇远县周大街
名字:黔东南旧州古镇	坐标:107.78954,26.991758	地址:贵州省黔东南苗族侗族自治州黄平县西北部

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyunit_map-2020.6.17.tar.gz (33.2 kB view details)

Uploaded Source

File details

Details for the file pyunit_map-2020.6.17.tar.gz.

File metadata

  • Download URL: pyunit_map-2020.6.17.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for pyunit_map-2020.6.17.tar.gz
Algorithm Hash digest
SHA256 32550f49f8f79edb2908574c199969dad18ff6cd7ec6e16437a82674bec8b854
MD5 29ecaa148a72fcd62fbfb5547d2e8ffb
BLAKE2b-256 ec680eee9cde75eadf5b655b759c230b2d7de09ffd92bffa8459aea5fe015292

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2020.6.17 This release

1 file

2019.4.1

1 file

2019.3.14

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page