public static TileCoord aroundLngLat(double lng, double lat, int zoom) {
    double factor = 1 << zoom;
    double x = GeoUtils.getWorldX(lng) * factor;
    double y = GeoUtils.getWorldY(lat) * factor;
    return TileCoord.ofXYZ((int) Math.floor(x), (int) Math.floor(y), zoom);
  }
Returns the tile containing a latitude/longitude coordinate at a given zoom level.
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/TileCoord.java