Swift bindings for Uber's H3 library – a fast, hexagonal hierarchical geospatial indexing system.
This package provides native Swift access to core H3 functionality by wrapping the C library via Swift Package Manager.
- Indexing API
- Inspection API
- Traversal API
- Hierarchy API
- Regions API
- Directed edges API
- Vertexes API
- Miscellaneous
- Unit tests
Add this to your Package.swift
:
.package(url: "https://github.com/JeremyEspresso/swift-h3.git", from: "1.0.0")
This package wraps the H3 C library via submodule.
Clone with submodules:
git clone --recurse-submodules https://github.com/JeremyEspresso/swift-h3.git
Then build:
swift build
swift test