Reader fetch(LocalDate date) throws IOException {
    String url = "https://planet.openstreetmap.org/tile_logs/tiles-%4d-%02d-%02d.txt.xz".formatted(
      date.getYear(),
      date.getMonthValue(),
      date.getDayOfMonth()
    );
    return new InputStreamReader(new XZInputStream(new BufferedInputStream(downloader.openStream(url))));
  }
A utility for computing {@link TileWeights} from historic openstreetmap.org tile traffic.
<p>
To download raw data from OSM tile logs, run with:

<pre>
{@code
java -jar planetiler.jar top-osm-tiles --days=<# days to fetch> --top=<# tiles to include> --output=output.tsv.gz
}
</pre>
<p>
You can also fetch precomputed top-1m tile stats from summer 2023 using
{@link #downloadPrecomputed(PlanetilerConfig)}
planetiler-core/src/main/java/com/onthegomap/planetiler/util/TopOsmTiles.java