pyufunc.cvt_gcj02_to_baidu09#

pyufunc.cvt_gcj02_to_baidu09(gcj_lng, gcj_lat)#

Convert coordinate from GCJ02 to Baidu09.

Parameters:
  • gcj_lng (float) – longitude in GCJ02 coordinate system.

  • gcj_lat (float) – latitude in GCJ02 coordinate system.

Returns:

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

Return type:

tuple[float, float]

Example

>>> from pyufunc import gcj02_to_baidu09
>>> gcj02_to_baidu09(113.8344944, 22.6897065)
(113.8410533339616, 22.695460615640712)