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 地址:贵州省黔东南苗族侗族自治州黄平县西北部
Metadata
Release files for pyunit-map 2020.6.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyunit_map-2020.6.17.tar.gz | 33.2 kB | Without provenance | Details for pyunit_map-2020.6.17.tar.gz |
Release files / pyunit_map-2020.6.17.tar.gz
| Download URL | pyunit_map-2020.6.17.tar.gz |
|---|---|
| Size | 33.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32550f49f8f79edb2908574c199969dad18ff6cd7ec6e16437a82674bec8b854
|
|
BLAKE2b-256 checksum How to use checksums |
ec680eee9cde75eadf5b655b759c230b2d7de09ffd92bffa8459aea5fe015292
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pyunit-map 2020.6.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.