H3 是 Uber 的分层六边形空间索引。每个地图要素都会按所请求的分辨率聚合到一个 H3 单元中;待 worker 镜像以 h3>=4.0 重新构建后,导出将返回包含真实 H3 索引的 JSON。在此之前,导出器会如实报错——不再输出 fallback_7_7690_5336 之类的合成字符串。
OpenStreetMap data as of 26 October 2026 · 17 days ago
主要特点

关于 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)文件:
格式规格
- 开放标准
- 仅 2D
- 有损压缩
- 存储要素属性
- 输出:1 个文件
- 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.
导出 Uber H3 Hexagonal Index (beta) 地图
从 OpenStreetMap 下载专业的 H3 地图。任意区域,付款前即可看到价格。