Skip to main content

Supported Versions

经纬度解析转换库

pip安装

pip install geo_tool

1.百度经纬度解析

    from geo_tool import BaiduGeo
    baidu_map_key = 'xxxxxxxxxxxx'
    print(BaiduGeo(baidu_map_key).geo2address(22.52955, 113.93078))
    print(BaiduGeo(baidu_map_key).get_city_name_by_geo(22.52955, 113.93078))
    print(BaiduGeo(baidu_map_key).address2geo('北京市海淀区上地十街10号'))

2.高德经纬度解析

    from geo_tool import GaodeGeo

    gaode_map_key = 'xxxxxxxx'
    print(GaodeGeo(gaode_map_key).geo2address(22.52955, 113.93078))
    print(GaodeGeo(gaode_map_key).address2geo("广东省深圳市南山区"))
    print(GaodeGeo(gaode_map_key).get_city_name_by_geo(22.52955, 113.93078))

3.谷歌经纬度解析

    from geo_tool import GoogelGeo

    google_key = 'xxxxxx'
    print(GoogelGeo(google_key).address2geo('深圳市南山区'))

4.经纬度互相转换

    from geo_tool import GeoTransform
    baidu_lng = '114.126496'
    baidu_lat = '22.538926'
    print(GeoTransform(lng=baidu_lng, lat=baidu_lat).baidu2google())
    google_lng = 114.12008298963123
    google_lat = 22.53258746867191
    print(GeoTransform(lng=google_lng, lat=google_lat).google2baidu())

Metadata

Release files for geo-tool 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geo-tool 1.1.2
File Size Uploaded Provenance Actions
geo_tool-1.1.2.tar.gz 4.9 kB Without provenance Details for geo_tool-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geo-tool 1.1.2
File Interpreter ABI Platform Actions
geo_tool-1.1.2-py3-none-any.whl Python 3 none any Details for geo_tool-1.1.2-py3-none-any.whl

Total release size: 11.8 kB

Release files / geo_tool-1.1.2.tar.gz

Download URL geo_tool-1.1.2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e5564a9969fb208768f994115ba7e62fcf6ef8cab8c97fbe2e3d5b0e76ca4729
BLAKE2b-256 checksum
How to use checksums
b6fa5bd0c6faead5a2ce60c20f66500d32ace353a32291064d2d55f134502201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.4.2 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.1

Release files / geo_tool-1.1.2-py3-none-any.whl

Download URL geo_tool-1.1.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8da6447e0b1a84be69402224a14c813daa913a72767e998f362d2b02a4178061
BLAKE2b-256 checksum
How to use checksums
48e70255f0974485cbc6321663a6baa94a11e1260879783da5256c24e7de0bd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.4.2 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.1

Security for geo-tool 1.1.2

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.

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page