Geo SDK for python
Project description
地理位置计算
安装 geo-tools-py
pip install geo-tools-py==1.0.0
链接:https://pypi.org/project/geo-tools-py/1.0.0/
坐标点最近圆形半径搜索poi搜索
1. 自建地图数据库(datahub.wtf)
自建数据库,主要来自地图平台,另有美团,大众点评等其他服务类数据,最新最全poi数据
2. 百度地图
3. 高德地图
from GeoData.POI import POI
poi = POI() #请求自建数据
print(poi.get_data_hub_pois(lat='12',lon='13',page=1,pageSize=10))
#请求高德地图接口,请先补全key
print(poi.get_gao_de_poi(key=None, locations='123.12,45.12',page=1))
#请求百度地图接口,请先补全Key
print(poi.get_baidu_poi(key=None, location='123.12,45.12',page=1))
电子围栏(点与多边形的位置关系)
1. 点射线法判断
from GeoCal.Geometry import Geometry
print(Geometry([]).point_intersect_line({"x":1,"y":1},{"x":3,"y":10},{"x":10,"y":0.2}))
2. uber h3 判断
多个经纬点与多个多边形匹配计算
坐标点距离计算
from GeoCal.LocDisDir import LocDisDir
l = LocDisDir()
l.geodistance(116.498079, 39.752304,117.498079, 39.752304)
距离坐标点loc1,相距500m,与正东方向成30度角的坐标点计算
from GeoCal.LocDisDir import LocDisDir
l = LocDisDir()
lat1,lon1 =39.752304,116.498079
l.get_new_lng_angle(lng1, lat1, dist=500, angle=90)
微信名片
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
geo_tools_py-1.0.1.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geo_tools_py-1.0.1.tar.gz.
File metadata
- Download URL: geo_tools_py-1.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c7e16f65825c822f66c4f5d01bca994252b378cc16348f0fda0f22e162917b5
|
|
| MD5 |
816020db64d3d0249e2aabf8cfff7697
|
|
| BLAKE2b-256 |
36dca59710d36c9b968dd454f6fdb75cf787a0890d3e8217601c62bebc4ad9d6
|
File details
Details for the file geo_tools_py-1.0.1-py3-none-any.whl.
File metadata
- Download URL: geo_tools_py-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2f5ae1dbcedea41bab395353105484b994b630970320be6d10fc35b137373b9
|
|
| MD5 |
7aecc5536ab75b712b079acaa46ae8c1
|
|
| BLAKE2b-256 |
4e9d86c5a1a3519f70cbae8336990558a4364e2a4175c47ac49a868fd954e25d
|