Skip to main content

中国地区邮编经纬度/工具.

Project description

中国地区邮编经纬度/工具(Python 版)

pypi python_vesion

找到中国地区的主要城市的经纬度与邮编

关于

特性

  1. 将词组转成五笔编码。比如词语:生死有命。换成五笔码为:'tgdw';
  2. 返回汉字的所有可能的编码。如汉字:为 。换成五笔码为: 'ylyi', 'yly', 'yl', 'o';
  3. 将一段句子,转成五笔码。如:天气不错,我们去散步吧!:五笔码为:'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


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.7.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

china_region-0.0.7-py3-none-any.whl (49.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page