Wrapper for prcoords library to convert Google / Bing Maps / Sat imagery coordinates in decimal degrees (WGS-84 or GCJ-02) to Baidu Map (BD-09) or other chinese maps.
Project description
gmap2baidu
Description
gmap2baidu is a wrapper for prcoords library to convert Google / Bing Maps / Sat imagery coordinates in decimal degrees (WGS-84 or GCJ-02) to Baidu Map (BD-09) or other chinese maps.
Installation
Using pipx
pipx install gmap2baidu
To run without installing:
pipx run gmap2baidu [options] latitude longitude # see Usage
Usage
Latitude and longitude are in decimal degrees, E.g. 31.241851345365674 121.49525353462117.
From WGS-84 to Chinese maps
option -wgs
From:
- Google Maps satellite view
- Bing Maps satellite view
- Yandex Maps satellite view and roadmap view
- Satellite imagery,...
gmap2baidu -wgs latitude longitude
gmap2baidu -wgs 31.241860527043016 121.49525795996406
From GCJ-02 to chinese maps
option -gcj
From:
- Google Maps roadmap view
- Bing Maps roadmap view
- Chinese maps satellite and roadmap view (to get Baidu BD-09 coordinates)
gmap2baidu -gcj latitude longitude
gmap2baidu gmap2baidu -gcj 31.239773035270655 121.49961209129178
From Baidu BD-09 to non chinese maps
option -r -bd
- From Baidu Maps satellite view and roadmap view
gmap2baidu -r -bd latitude longitude
gmap2baidu -r -bd 31.245501027853667 121.50631784536566
From GCJ-02 to non chinese maps
option -r -gcj
From:
- Amap.com
- map.qq.com
- other chinese GCJ-02 maps
gmap2baidu -r -gcj latitude longitude
gmap2baidu -r -gcj 31.239760876521242 121.49961227600687
Credits
- prcoords
- colorama
License
GPLv3
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
Built Distribution
File details
Details for the file gmap2baidu-0.0.1b0.tar.gz
.
File metadata
- Download URL: gmap2baidu-0.0.1b0.tar.gz
- Upload date:
- Size: 32.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0039b4f10b32cd58c49f702f05a27db95730c6099ef721d999a897b3bf40f28 |
|
MD5 | f16b3024f8df722e5ca89324d2434fe7 |
|
BLAKE2b-256 | 23858225ec0f3d6939e2773316f5a86151993329da5021dc0adf35a28f149bbf |
File details
Details for the file gmap2baidu-0.0.1b0-py3-none-any.whl
.
File metadata
- Download URL: gmap2baidu-0.0.1b0-py3-none-any.whl
- Upload date:
- Size: 30.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddec1cee7fe932805dc73320c25a29e7db55bff111b38a42f6cf1c25ee2c6a5c |
|
MD5 | 2d7dda3ff3972a61a31d643d6d6f7d7a |
|
BLAKE2b-256 | 91d02f8cfab1c4c270e59c13589523b1ae162e010178f98e78be316a859fdd2d |