pyufunc.cvt_wgs84_to_baidu09#

pyufunc.cvt_wgs84_to_baidu09(wgs84_lng, wgs84_lat)#

Convert coordinate from WGS84 to Baidu09. Baidu09 also known as BD09 coordinate system.

Parameters:
  • wgs84_lng (float) – longitude in WGS84 coordinate system.

  • wgs84_lat (float) – latitude in WGS84 coordinate system.

Returns:

longitude and latitude in Baidu09 coordinate system. (lng, lat)

Return type:

tuple[float, float]

Example

>>> from pyufunc import wgs84_to_baidu09
>>> wgs84_to_baidu09(113.8294754, 22.6926477)
(113.84105328499314, 22.69546061836469)

Note

Baidu09 is a coordinate system used by Baidu Map, the coordinate system is based on GCJ02. if the input is not in China, the result may be inaccurate. The package will check if the input is valid, and raise an error if the input is invalid.