Function bd09_to_gcj02

Source
pub fn bd09_to_gcj02(lon: f64, lat: f64) -> (f64, f64)
Expand description

百度坐标系 -> 火星坐标系 Baidu Coordinate System -> Mars Coordinate System

§Parameters 参数

  • lon - 经度 Longitude
  • lat - 纬度 Latitude

§返回值 Return Value

返回转换后的 (经度, 纬度) 元组 Returns a tuple of (longitude, latitude) after conversion

§示例 Example

use coordtransform::bd09_to_gcj02;

let (lon, lat) = bd09_to_gcj02(116.404, 39.915);