Function mercator::mercator_to_lnglat[][src]

pub fn mercator_to_lnglat(
    x: f64,
    y: f64,
    center_lng: f64,
    k0: f64,
    dx: f64
) -> (f64, f64)

convert croodinate from mercator projection to wgs84

Examples

use mercator::lnglat_to_mercator;
let k0:f64 = 0.9999;
let dx:f64 = 250000.0;
let x:f64 = 248170.82572;
let y:f64 = 2652129.9773;
let (lng, lat) = lnglat_to_mercator(x, y, 121.0, k0, dx);