function mergiLat($lat, $zoom) { $f = GEO_TILE_SIZE * pow(2, $zoom); return Geo::mercatorLatInv($lat / $f * GEO_2_PI - M_PI); }