pyufunc.cvt_gcj02_to_wgs84#

pyufunc.cvt_gcj02_to_wgs84(gcj_lng, gcj_lat)#

Convert coordinate from GCJ02 to WGS84.

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

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

Returns:

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

Return type:

tuple[float, float]

Example

>>> from pyufunc import gcj02_to_wgs84
>>> gcj02_to_wgs84(113.8344944, 22.6897065)
(113.82948917244678, 22.6926579036743)