macOS
brew install h3local Homebrew formula metadata
安装
brew install h3local Homebrew formula metadata
sudo dnf install h3Fedora Rawhide package metadata · h3 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#h3nixpkgs package indexes · h3 · 来源: raw.githubusercontent.com
概览
Hexagonal hierarchical geospatial indexing system
历史
H3 is Uber's hexagonal hierarchical geospatial indexing system, implemented as a C core library with command-line tools and bindings across data platforms and programming languages. It is important in package ecosystems because it turns latitude/longitude data into stable cell IDs that can be joined, aggregated, visualized, and exchanged without carrying heavy GIS machinery into every project.
Uber created H3 to support marketplace analysis, pricing, dispatch optimization, and spatial visualization at city scale. The public repository was created in December 2017, and Uber's engineering blog announced that H3 had been open sourced on GitHub and that JavaScript bindings had also been opened.
The H3 design combines a global hexagonal grid with a hierarchical index. Official documentation describes a discrete global grid system developed at Uber, with cells that can represent points and shapes, aggregate datasets at different resolutions, and support algorithms such as nearest neighbors, shortest paths, and smoothing.
The C library became the stable core, while Java, JavaScript, Python, and other bindings made the grid usable from application, analytics, and database workflows. The documentation's bindings page records the broader ecosystem, including cloud data warehouses, PostgreSQL, Spark-style analytics, and language bindings maintained by Uber and the community.
Version 4.0.0 in 2022 introduced breaking API changes around terminology, error handling, and more consistent function names, while preserving the grid layout and index interpretation across 3.x and 4.x. Later 4.x releases continued to add functions and improve algorithms while keeping the core index model stable.
H3 adoption began with Uber's internal marketplace analytics and spread through open-source bindings and data-platform integrations. The Uber blog describes H3 as used throughout Uber for quantitative marketplace analysis, and the H3 site positions it for joining disparate datasets and aggregating at different precision levels.
Package-manager adoption reflects two audiences: developers who want the C CLI/library through Homebrew, MacPorts, Nix, or Linux packages, and data users who install bindings such as h3-py, h3-js, h3-java, PostgreSQL extensions, or warehouse functions. That split made H3 both a systems package and a data-analysis primitive.
The CLI examples convert latitude and longitude into a cell ID with `latLngToCell`, inspect boundaries with `cellToBoundary`, and operate on grid neighborhoods. Library users commonly index events, points, or polygons into cells, aggregate by resolution, compact or uncompact cell sets, find neighboring cells, and exchange indexes as 64-bit integers or hexadecimal strings.
Because the grid has fixed resolutions and a globally meaningful index, H3 is used for spatial joins, heatmaps, regional rollups, mobility analysis, delivery and dispatch models, and analytic tables where a cell ID can be a normal join key.
H3 is a package-nerd favorite because a relatively small C library and CLI unlock a large ecosystem of geospatial workflows. It lets packages expose geospatial indexing through ordinary scalar values, which is much easier to package, bind, test, and move between languages than a full GIS stack.
The 4.0 migration is also historically important: the project took the pain of API renaming and error-return cleanup while documenting that existing H3 indexes and grid layout remained compatible. That distinction matters for package upgrades because stored H3 IDs can outlive a language binding or library major version.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cellToBoundary | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
cellToBoundaryHier | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
cellToLatLng | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
cellToLatLngHier | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
cellToLocalIj | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
gridDisk | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
gridDiskUnsafe | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
h3 | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
h3ToComponents | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
h3ToHier | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
latLngToCell | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
localIjToCell | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:h3 |
|---|---|
| 版本 | 4.5.0 |
| 软件包管理器 | Homebrew |
| 主页 | https://uber.github.io/h3/ |
| 仓库 | https://github.com/uber/h3 |
| 最后更新 | 2026-05-22T01:59:05Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
h3
nix profile install nixpkgs#h3h3 4.4.1-3.fc45
Hexagonal hierarchical geospatial indexing system
sudo dnf install h3h3-devel 4.4.1-3.fc45
Development files for h3
sudo dnf install h3-develh3
sudo port install h3来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.