DBDelve
Dive deep into your data. A fast, native, multi-engine database client written in Rust. Free and open source, no telemetry.
翻訳待ち
Go bindings for H3, a hierarchical hexagonal geospatial indexing system
翻訳待ち
Loading the full README.
Read the full README ↗This library is a pure-Go implementation of the H3 Core Library. It needs no C toolchain and no cgo. For API reference, see the H3 Documentation.
This is v4 of this library, supporting H3 v4.
Check out v3 or checkout the git tag for the version you need.
Migrating from v3?
Check out v3 to v4 migration guide. There have been no breaking changes to the format of H3 indexes. Indexes generated by older versions can be parsed in v4, and vice-versa.
go get github.com/uber/h3-go/v4
import "github.com/uber/h3-go/v4"
func ExampleLatLngToCell() {
latLng := h3.NewLatLng(37.775938728915946, -122.41795063018799)
resolution := 9 // between 0 (biggest cell) and 15 (smallest cell)
cell, err := h3.LatLngToCell(latLng, resolution)
if err != nil {
log.Fatal(err)
}
fmt.Println(cell)
// Output:
// 8928308280fffff
}
LatLng returns Lat and Lng as degrees, instead of radians.get have been dropped in support of Golang's
Getter naming style.This is the beginning of the README. Read the rest at the original. Read the full README ↗