# h3 を Homebrew, dnf, MacPorts, Nix でインストール

h3 のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:h3
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install h3
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install h3
```

  証拠: MacPorts ports tree: gis/h3/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install h3
```

  証拠: Fedora Rawhide package metadata: h3 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#h3
```

  証拠: nixpkgs package indexes: h3 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## パッケージ情報

- **パッケージキー:** brew:h3
- **パッケージマネージャ:** Homebrew
- **バージョン:** 4.5.0
- **ソース概要:** Hexagonal hierarchical geospatial indexing system
- **ホームページ:** <https://uber.github.io/h3/>
- **リポジトリ:** <https://github.com/uber/h3>
- **最終更新:** 2026-05-22T01:59:05Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- cellToBoundary (エイリアス)
- cellToBoundaryHier (エイリアス)
- cellToLatLng (エイリアス)
- cellToLatLngHier (エイリアス)
- cellToLocalIj (エイリアス)
- gridDisk (エイリアス)
- gridDiskUnsafe (エイリアス)
- h3 (エイリアス)
- h3ToComponents (エイリアス)
- h3ToHier (エイリアス)
- latLngToCell (エイリアス)
- localIjToCell (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 4.5.0
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://formulae.brew.sh/formula/h3>
- <https://github.com/uber/h3>
- <https://github.com/uber/h3/releases>
- <https://h3geo.org/>
- <https://h3geo.org/docs/>
- <https://h3geo.org/docs/community/bindings/>
- <https://h3geo.org/docs/library/migrating-3.x/>
- <https://raw.githubusercontent.com/uber/h3/master/README.md>
- <https://www.uber.com/us/en/blog/h3/>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Nix - h3: normalized package name match | nixpkgs package indexes: h3 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- dnf - h3 - 4.4.1-3.fc45: normalized package name match | Fedora Rawhide package metadata: h3 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Hexagonal hierarchical geospatial indexing system | https://github.com/uber/h3
- dnf - h3-devel - 4.4.1-3.fc45: normalized package name match | 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 | Development files for h3 | https://github.com/uber/h3
- MacPorts - h3: normalized package name match | MacPorts ports tree: gis/h3/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/h3.yml](https://github.com/mxcl/pkgdb/blob/main/combined/h3.yml)


## ソース

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