中国地区邮编经纬度/工具.
Project description
中国地区邮编经纬度/工具(Python 版)
找到中国地区的主要城市的经纬度与邮编
关于
- GitHub: https://github.com/sfyc23/China-zip-code-latitude-and-longitude
- License: MIT license
- PyPI: https://pypi.org/project/china-region/
- Python version: >= 3.5
特性
- 将词组转成五笔编码。比如词语:生死有命。换成五笔码为:'tgdw';
- 返回汉字的所有可能的编码。如汉字:为 。换成五笔码为: 'ylyi', 'yly', 'yl', 'o';
- 将一段句子,转成五笔码。如:天气不错,我们去散步吧!:五笔码为:'gdi', 'rnb', 'gii', 'qajg', ',', 'trnt', 'wun', 'fcu', 'aety', 'hir', 'kcn', '!'
安装
$ pip install china-region
升级
$ pip install -U china-region
使用示例
>>> import china_region
>>> china_region.search(county='全州')
[{'province': '广西壮族自治区', 'city': '桂林市', 'county': '全州县', 'longitude': 111.07, 'latitude': 25.93, 'zipCode': '541500'}]
>>> china_region.search(province='广西省',city='桂林')
[{'province': '广西壮族自治区', 'city': '桂林市', 'county': '桂林市', 'longitude': 110.28, 'latitude': 25.28, 'zipCode': '541000'}]
>>> china_region.search(province='广西省',city='桂林',county='兴安')
[{'province': '广西壮族自治区', 'city': '桂林市', 'county': '兴安县', 'longitude': 110.67, 'latitude': 25.62, 'zipCode': '541399'}]
Lincese
MIT License
Copyright (c) 2019 Thunder Bouble
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
china_region-0.0.6.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for china_region-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81073da31b1c358c1533ae3e3bb831c1631cfbefafcdc604e254105f3fba95df |
|
MD5 | c5dc62ea92d5523c9dbd6df340ff6ffa |
|
BLAKE2b-256 | 1996ab1abd115fedbe5e5e2c08acdbb138a2c9ca2282beacecd05a442e00245e |