geohash

package
v0.0.0-...-96f1409 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transformer

type Transformer struct {
	Precision  int
	LatPath    []string
	LonPath    []string
	ResultPath []string
}

Transformer is a pdk.Transformer for geohashing locations to strings.

func (*Transformer) Transform

func (t *Transformer) Transform(e *pdk.Entity) error

Transform hashes the latitude and longitude at the given paths and sets the resulting string at the result path on the Entity.

Jump to

Keyboard shortcuts

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