Skip to main content

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

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

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

gmap2baidu-0.0.1b2.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

gmap2baidu-0.0.1b2-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

Details for the file gmap2baidu-0.0.1b2.tar.gz.

File metadata

  • Download URL: gmap2baidu-0.0.1b2.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for gmap2baidu-0.0.1b2.tar.gz
Algorithm Hash digest
SHA256 5c7414d11cabbbbd7496ed2bc40a88af4bc952334fe4d5fb0851b121ad187a02
MD5 fca76aba3346cd78c3e4a8e80cf546e7
BLAKE2b-256 9bc943dadbf63a796b168cf68234e71744fe6523ad8267b825fc611ebe7a6964

See more details on using hashes here.

File details

Details for the file gmap2baidu-0.0.1b2-py3-none-any.whl.

File metadata

File hashes

Hashes for gmap2baidu-0.0.1b2-py3-none-any.whl
Algorithm Hash digest
SHA256 950027521c2b176a9721694eb4ecf9f9f11c25738eb38d23f30d9860c4efb965
MD5 c7cfd7aaabb8d432079a6a8388046bf0
BLAKE2b-256 ccfa93bdf50691a30cd97c2ff6b897d00cb1a1b0c5f2b38766e7e8119f388a2e

See more details on using hashes here.

Supported by

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