wgs2gcj

Function wgs2gcj 

Source
pub fn wgs2gcj(wgs: (f64, f64)) -> (f64, f64)
Expand description

wgs2gcj 将WGS84无偏移坐标 转换至 火星坐标系 (GCJ-02)

    let (x, y) = coord_transform::wgs2gcj((118.0, 32.0));
    assert_eq!(x, 118.00543101383846);
    assert_eq!(y, 31.997964381055795);