A tool to convert coordinates between WGS84 GCJ02 and BD09
Project description
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
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
Close
Hashes for CoordinatesConverter-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a74a70ed140e114eaae2e477b5fafc2518c06a04b04b23ef2a9c555a98e37e4 |
|
MD5 | f2d4524d9746b47aeb1b10c4f06dc343 |
|
BLAKE2b-256 | 94360a6d7ef961ce4a05902718eec4b22e35144584852144fab574b69f01521e |