public static double getWorldY(double latitude) {
    if (latitude <= MIN_LAT) {
      return 1.1;
    }
    if (latitude >= MAX_LAT) {
      return -0.1;
    }
    double sin = Math.sin(latitude * RADIANS_PER_DEGREE);
    return 0.5 - 0.25 * Math.log((1 + sin) / (1 - sin)) / Math.PI;
  }
Returns the web mercator Y coordinate for {@code latitude} where 0 is the north edge of the map, 0.5 is the
equator, and 1 is the south edge of the map.
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/GeoUtils.java