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.1b1.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gmap2baidu-0.0.1b1.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.1b1.tar.gz
Algorithm Hash digest
SHA256 27f72d31b56b0d0c262af702c281d14cc58278498adb14dcc1e8b60c093577f3
MD5 2024dd0e67898a315c939f09d88d07e2
BLAKE2b-256 1f00e7ceb54315daa51276c8603025b22bdf3504cef495d953813455ca4c2e5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gmap2baidu-0.0.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 aed6dd03b38a694683c62bc2f74808e8d00b2b47098ee7137625cf420e11c825
MD5 2d091f77343281ea6aabdf724c6bed8b
BLAKE2b-256 6563e52a70952c690003edae13a4ddb08716975e8c74b1415d648f1f74f43d61

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