pkg.soopen package index

brew / 排名 4398

使用 Homebrew, dnf, MacPorts, Nix 安装 h3

查看 h3 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install h3

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install h3

MacPorts ports tree · gis/h3/Portfile · 来源: api.github.com

概览

软件包摘要

Hexagonal hierarchical geospatial indexing system

命令和别名

  • cellToBoundary
  • cellToBoundaryHier
  • cellToLatLng
  • cellToLatLngHier
  • cellToLocalIj
  • gridDisk
  • gridDiskUnsafe
  • h3
  • h3ToComponents
  • h3ToHier
  • latLngToCell
  • localIjToCell

历史

项目历史与用法

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.

时间线

  • 2017: Public H3 repository created.
  • 2018: Uber engineering blog described H3, its marketplace use, GitHub release, and JavaScript bindings.
  • 2018: 3.x releases expanded local IJ, grid-line, and base-cell functions.
  • 2020: 3.7.x releases added area and distance functions and packaging/build fixes.
  • 2022: 4.0.0 introduced breaking API changes while preserving grid and index compatibility.
  • 2024: 4.2.0 release added an experimental memory-efficient polygon-to-cells algorithm and an `h3` binary for shell-script use.
  • 2025: 4.4.x releases added index-inspection and cell-construction functions.

Related projects

  • Related projects include S2 Geometry, h3-js, h3-java, h3-py, PostgreSQL H3 extensions, BigQuery and warehouse integrations, GIS systems, and spatial analytics platforms that use H3 cells as join and aggregation keys.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
cellToBoundary可执行文件已索引可执行文件从本地可执行文件索引发现。
cellToBoundaryHier可执行文件已索引可执行文件从本地可执行文件索引发现。
cellToLatLng可执行文件已索引可执行文件从本地可执行文件索引发现。
cellToLatLngHier可执行文件已索引可执行文件从本地可执行文件索引发现。
cellToLocalIj可执行文件已索引可执行文件从本地可执行文件索引发现。
gridDisk可执行文件已索引可执行文件从本地可执行文件索引发现。
gridDiskUnsafe可执行文件已索引可执行文件从本地可执行文件索引发现。
h3可执行文件已索引可执行文件从本地可执行文件索引发现。
h3ToComponents可执行文件已索引可执行文件从本地可执行文件索引发现。
h3ToHier可执行文件已索引可执行文件从本地可执行文件索引发现。
latLngToCell可执行文件已索引可执行文件从本地可执行文件索引发现。
localIjToCell可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本4.5.0
管理器更新时间2026-05-22
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:h3
版本4.5.0
软件包管理器Homebrew
主页https://uber.github.io/h3/
仓库https://github.com/uber/h3
最后更新2026-05-22T01:59:05Z
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

h3

nix profile install nixpkgs#h3
  • normalized package name match
  • 匹配方式:H3
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: h3 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
dnf95%

h3 4.4.1-3.fc45

Hexagonal hierarchical geospatial indexing system

https://github.com/uber/h3

sudo dnf install h3
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: i686
  • Source Package: h3
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:H3
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: h3 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
dnf95%

h3-devel 4.4.1-3.fc45

Development files for h3

https://github.com/uber/h3

sudo dnf install h3-devel
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: i686
  • Source Package: h3
  • 5 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:H3
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: h3-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
MacPorts95%

h3

sudo port install h3
  • normalized package name match
  • 匹配方式:H3
MacPorts ports tree · api.github.com · MacPorts ports tree: gis/h3/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

Combined YAML source

View the package source record on GitHub.

combined/h3.yml

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation