Skip to main content

CoordinatesConverter

WGS84 / BD09 / GCJ02 经纬度坐标互转,基于numpy列运算

安装

pip install CoordinatesConverter

用法

import CoordinatesConverter  
BUS_GPS['lon'],BUS_GPS['lat'] = CoordinatesConverter.gcj02towgs84(BUS_GPS['lon'],BUS_GPS['lat'])

功能

坐标互转,基于numpy列运算

CoordinatesConverter.wgs84tobd09(lon, lat)  
CoordinatesConverter.wgs84togcj02(lon, lat)  
CoordinatesConverter.gcj02tobd09(lon, lat)  
CoordinatesConverter.gcj02towgs84(lon, lat)  
CoordinatesConverter.bd09togcj02(lon, lat)  
CoordinatesConverter.bd09towgs84(lon, lat)  

输入起终点经纬度,获取距离(米),基于numpy列运算 CoordinatesConverter.getdistance(lon1, lat1, lon2, lat2)

注:传入列数据类型需为float

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CoordinatesConverter-0.1.5.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file CoordinatesConverter-0.1.5.tar.gz.

File metadata

  • Download URL: CoordinatesConverter-0.1.5.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8

File hashes

Hashes for CoordinatesConverter-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ea0348c97569a6aaffac6406bdb4a260ea5f3e141d52a88cbdc9bb638667e494
MD5 137037a2ae4b19f6c8b3440be5a8fb17
BLAKE2b-256 d22372530f750efbf73d2745c07b5e0c50baa19bd33c3fca2dd512b15e50b17d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Supported by

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