Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Fetch basic location information

option -i

Fetch basic location information from an Amap undocumented endpoint, translated to english with Google Translate: Country, Country code, Province, City, District, Administration code, Phone code.

gmap2baidu -wgs -i 31.241860527043016 121.49525795996406

Credits

  • prcoords
  • colorama
  • easygoogletranslate

License

GPLv3

Metadata

Release files for gmap2baidu 0.0.1b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gmap2baidu 0.0.1b2
File Size Uploaded
gmap2baidu-0.0.1b2.tar.gz 33.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gmap2baidu 0.0.1b2
File Interpreter ABI Platform
gmap2baidu-0.0.1b2-py3-none-any.whl Python 3 none any Details

Total release size: 64.1 kB

Release files / gmap2baidu-0.0.1b2.tar.gz

Download URL gmap2baidu-0.0.1b2.tar.gz
Size 33.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5c7414d11cabbbbd7496ed2bc40a88af4bc952334fe4d5fb0851b121ad187a02
BLAKE2b-256 checksum
How to use checksums
9bc943dadbf63a796b168cf68234e71744fe6523ad8267b825fc611ebe7a6964
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release files / gmap2baidu-0.0.1b2-py3-none-any.whl

Download URL gmap2baidu-0.0.1b2-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
950027521c2b176a9721694eb4ecf9f9f11c25738eb38d23f30d9860c4efb965
BLAKE2b-256 checksum
How to use checksums
ccfa93bdf50691a30cd97c2ff6b897d00cb1a1b0c5f2b38766e7e8119f388a2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page