package
2.34.0
Repository: https://github.com/alicebob/miniredis.git
Documentation: pkg.go.dev

# README

This is a (selected) copy of github.com/mmcloughlin/geohash with the latitude range changed from 90 to ~85, to align with the algorithm use by Redis.

# Functions

BoundingBox returns the region encoded by the given string geohash.
BoundingBoxInt returns the region encoded by the given 64-bit integer geohash.
BoundingBoxIntWithPrecision returns the region encoded by the integer geohash with the specified precision.
DecodeCenter decodes the string geohash to the central point of the bounding box.
DecodeInt decodes the provided 64-bit integer geohash to a (lat, lng) point.
DecodeIntWithPrecision decodes the provided integer geohash with bits of precision to a (lat, lng) point.
Encode the point (lat, lng) as a string geohash with the standard 12 characters of precision.
encodeInt provides a Go implementation of integer geohash.
EncodeIntWithPrecision encodes the point (lat, lng) to an integer with the specified number of bits.
EncodeWithPrecision encodes the point (lat, lng) as a string geohash with the specified number of characters of precision (max 12).
Neighbor returns a geohash string that corresponds to the provided geohash's neighbor in the provided direction.
NeighborInt returns a uint64 that corresponds to the provided hash's neighbor in the provided direction at 64-bit precision.
NeighborIntWithPrecision returns a uint64s that corresponds to the provided hash's neighbor in the provided direction at the given precision.
Neighbors returns a slice of geohash strings that correspond to the provided geohash's neighbors.
NeighborsInt returns a slice of uint64s that correspond to the provided hash's neighbors at 64-bit precision.
NeighborsIntWithPrecision returns a slice of uint64s that correspond to the provided hash's neighbors at the given precision.

# Constants

Cardinal and intercardinal directions.
No description provided by the author
No description provided by the author
Cardinal and intercardinal directions.
Cardinal and intercardinal directions.
Cardinal and intercardinal directions.
Cardinal and intercardinal directions.
Cardinal and intercardinal directions.
Cardinal and intercardinal directions.
Cardinal and intercardinal directions.

# Structs

Box represents a rectangle in latitude/longitude space.

# Type aliases

Direction represents directions in the latitute/longitude space.