FastH3.jl
A pure Julia implementation of Uber's H3 hexagonal hierarchical geospatial indexing system.
Overview
FastH3.jl provides a complete, dependency-free Julia implementation of the H3 library. It maps latitude/longitude coordinates onto a hierarchical grid of hexagonal (and pentagonal) cells, enabling efficient spatial indexing, neighbor traversal, and distance computation.
Key properties:
- Pure Julia — no C dependencies or binary wrappers.
- Zero-allocation scalars — core index operations allocate nothing on the heap.
- Full H3 v4 API — covers indexing, inspection, traversal, hierarchy, directed edges, vertexes, and measurement functions.
- Callback overloads — many multi-result APIs also support
op-first enumeration without allocating the resultVector; see Callback enumeration.
Quick Start
using FastH3
lat, lng = 0.6518070561696664, -1.7453292519943295 # radians
err, cell = latLngToCell(LatLng(lat, lng), 5)
err, center = cellToLatLng(cell)
err, disk = gridDisk(cell, 1)C API Correspondence
Every public function in FastH3.jl corresponds to a function in the H3 C library. Docstrings include direct links to the matching C API documentation page.
Module
FastH3.FastH3 — Module
FastH3Pure Julia implementation of Uber's H3 hexagonal hierarchical geospatial indexing system. Provides the complete H3 v4 public API with no C dependencies.
See the H3 documentation for background on the indexing system and the API reference for the original C function signatures.