bd2gcj

Function bd2gcj 

Source
pub fn bd2gcj(bd: (f64, f64)) -> (f64, f64)
Expand description

bd2gcj 将百度坐标系 (BD-09) 转换至 火星坐标系 (GCJ-02)

    let (x, y) = coord_transform::bd2gcj((118.0, 32.0));
    assert_eq!(x, 117.99349542486605);
    assert_eq!(y, 31.994068010063465);