convert Meters To Latitude - Java java.lang

Java examples for java.lang:Math Convert

Description

convert Meters To Latitude

Demo Code


//package com.java2s;

public class Main {
    static public double convertMetersToLat(double meters) {
        return 180.0
                / Math.PI/*from   www. j a  va2 s . c o m*/
                * (2 * Math.atan(Math.exp(meters / 20037508.342789244
                        * Math.PI)) - Math.PI / 2.0);
    }
}

Related Tutorials