Skip to main content

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)

微信名片 avatar

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

geo_tools_py-1.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geo_tools_py-1.0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for geo_tools_py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9c7e16f65825c822f66c4f5d01bca994252b378cc16348f0fda0f22e162917b5
MD5 816020db64d3d0249e2aabf8cfff7697
BLAKE2b-256 36dca59710d36c9b968dd454f6fdb75cf787a0890d3e8217601c62bebc4ad9d6

See more details on using hashes here.

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

Hashes for geo_tools_py-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2f5ae1dbcedea41bab395353105484b994b630970320be6d10fc35b137373b9
MD5 7aecc5536ab75b712b079acaa46ae8c1
BLAKE2b-256 4e9d86c5a1a3519f70cbae8336990558a4364e2a4175c47ac49a868fd954e25d

See more details on using hashes here.

Supported by

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