H3は、Uberが開発した階層的な六角形空間インデックスです。各地図オブジェクトは指定した解像度のH3セルに集約されます。エクスポートは、ワーカーイメージがh3>=4.0で再構築された後、実際のH3インデックスを含むJSONを返します。それまではエクスポータは正直にエラーを返します。fallback_7_7690_5336のような合成文字列はもう出力しません。
主な機能

H3フォーマットについて
H3 is a hexagonal indexing system for the Earth invented at Uber: the planet is split into hexagonal cells across fifteen levels of nesting, and every cell has its own short identifier. Hexagons are more convenient than squares in analytics: a cell has six neighbors at the same distance, so density is not distorted along the diagonals.
The export is what you need when the features themselves matter less than their distribution: how many cafes fall into a cell, where development thickens, how to compare districts with each other. The H3 index is the common denominator to which any map layer and your own data are reduced alike.
The output is a single .json with the H3IndexCollection structure: the resolution, the extent of the area and a list of cells. Every cell carries a real H3 index, the total number of features that fell into it and a breakdown by layer; on request the cell's boundary is added as a GeoJSON polygon. The resolution is set from 0 to 15, with seven by default — a cell with an edge of about 1.2 km, convenient at city scale.
The export is built honestly: indexes are computed by the h3 library version four and newer. If it is missing from the environment, the export returns an error rather than made-up placeholder strings — that mode existed before and was misleading. Features are assigned to cells by their centroids, and the limit is 500,000 features per export.
H3ファイルを開けるプログラム
次のプログラムおよびアプリケーションは、OSM2CDRからエクスポートしたUber H3 Hexagonal Index (beta)(.json)ファイルを開き、編集し、利用できます:
Format specifications
- Open standard
- 2D only
- Lossy compression
- Stores feature attributes
- Output: 1 file
- Uber H3 hexagonal index aggregation as a single JSON file. Each record is an H3 cell ID + feature count (optional GeoJSON hex boundary). Resolutions 0-15, default 7.
H3地図を利用するユーザー
H3のエクスポート方法
エクスポート後の開き方
- Python — read the JSON, then use the h3-py library: h3.cell_to_boundary gives the cell outline, h3.grid_disk gives the neighbors, and pandas assembles the summary tables.
- deck.gl — the H3HexagonLayer takes indexes directly, so a density map is built without creating polygons first.
- Kepler.gl — load a table with a column of indexes and pick the H3 layer type: an interactive heat map comes together in a couple of clicks.
- QGIS (free) — if the export was made with cell boundaries, the polygons from the file attach as a layer and are colored by feature count.
- Databases — the H3 index makes a convenient join key against your own tables: ClickHouse has H3 functions built in, and PostgreSQL has the h3-pg extension.
H3の人気地図
Uber H3 Hexagonal Index (beta)の地図エクスポートを入手
OpenStreetMapからプロフェッショナルなH3地図をダウンロード。即時生成、任意の範囲に対応。