Skip to main content

A small example package

Project description

GeoPi=3.14!

面向中国的时空位置数据处理工具包

离线环境下,无需联网,即可快速获取地理坐标点(经纬度)所在位置点(省市区县),查询速度毫秒级。

:octocat: Github链接地址

:rocket: pypi.org链接地址

功能

获取地理坐标点(经纬度)所在位置点(省市区县)

中国地区数据来源于阿里云DataV.GeoAtlas,确保地理数据的准确性,地图坐标系采用高德坐标系。

安装

pip install geopi

或者

pip install geopi -i https://test.pypi.org/simple/

使用

from geopi import GeoPi

geopi = GeoPi()

# 设置要查询的经纬度坐标
lat = 118.79
lng = 32.06

# 获取所在地址
ret = geopi.city_search(lat, lng)
print(ret)

输出经纬度坐标所在位置点(省市区县):

{
    'province': ['江苏省', '320000'], 
    'city': ['南京市', '320100'], 
    'area': ['玄武区', '320102']
}

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

geopi-0.0.6.tar.gz (22.0 MB view hashes)

Uploaded Source

Built Distribution

geopi-0.0.6-py3-none-any.whl (23.6 MB 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