geohash

package
v0.0.0-...-0108d89 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bounds

func Bounds(geohash string) (swLat, swLon, neLat, neLon float64, err error)

Bounds returns SW/NE latitude/longitude bounds of specified geohash.

func Decode

func Decode(geohash string) (lat, lon float64, err error)

Decode geohash to latitude/longitude (location is approximate centre of geohash cell, to reasonable precision).

func Encode

func Encode(lat, lon float64, precision int) (string, error)

Encode latitude/longitude to geohash, either to specified precision or to automatically evaluated precision.

Types

This section is empty.

Jump to

Keyboard shortcuts

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