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:
- Returns:
longitude and latitude in Baidu09 coordinate system. (lng, lat)
- Return type:
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.