Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static double tile2lon(int x, int z) { return x / Math.pow(2.0, z) * 360.0 - 180; } }