h3light

package module
v0.0.0-...-d999cec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 13

README

h3-light

h3-light provides a pure, non-cgo, H3 implementation of a very limited set of the Uber h3 library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell uint64

func CellFromString

func CellFromString(str string) (Cell, error)

func LatLonToCell

func LatLonToCell(lat, lon float64, res int) Cell

func LatLonToRes0ToCell

func LatLonToRes0ToCell(lat, lon float64) Cell

func MustCellFromString

func MustCellFromString(str string) Cell

func (Cell) DatabaseCell

func (c Cell) DatabaseCell() DatabaseCell

func (*Cell) DatabaseCellPtr

func (c *Cell) DatabaseCellPtr() *DatabaseCell

func (Cell) Int64

func (c Cell) Int64() int64

func (Cell) LatLon

func (c Cell) LatLon() (float64, float64)

func (Cell) MarshalText

func (c Cell) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface.

func (Cell) Parent

func (c Cell) Parent(res int) Cell

func (Cell) Resolution

func (c Cell) Resolution() int

func (Cell) String

func (c Cell) String() string

func (*Cell) UnmarshalText

func (c *Cell) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

type DatabaseCell

type DatabaseCell string

func DatabaseCellFromCell

func DatabaseCellFromCell(cell uint64) DatabaseCell

func (DatabaseCell) Cell

func (dc DatabaseCell) Cell() Cell

func (*DatabaseCell) CellPtr

func (dc *DatabaseCell) CellPtr() *Cell

func (DatabaseCell) Int64

func (dc DatabaseCell) Int64() int64

func (DatabaseCell) Parent

func (dc DatabaseCell) Parent(res int) DatabaseCell

func (DatabaseCell) Resolution

func (dc DatabaseCell) Resolution() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL