@SuppressWarnings("java:S2142")
  public static void downloadPrecomputed(PlanetilerConfig config) {
    var dest = config.tileWeights();
    if (!Files.exists(dest)) {
      var tmp = dest.resolveSibling(dest.getFileName() + ".tmp");
      FileUtils.deleteOnExit(tmp);
      try {
        try (
          var in = Downloader.openStream(DOWLOAD_URL, config);
          var out = Files.newOutputStream(tmp, CREATE, TRUNCATE_EXISTING, WRITE)
        ) {
          LOGGER.info("Downloading pre-computed tile weights from {} to {}", DOWLOAD_URL, dest);
          in.transferTo(out);
        }
        Files.move(tmp, dest);
      } catch (IOException e) {
        LOGGER.warn("Failed downloading pre-computed tile weights: {}", e.toString());
        FileUtils.delete(dest);
      } finally {
        FileUtils.delete(tmp);
      }
    }
  }
Download precomputed top-1m tile stats from 90 days of openstreetmap.org tile logs to
{@link PlanetilerConfig#tileWeights()} path if they don't already exist.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/TopOsmTiles.java