Categorygithub.com/pierrre/geohash
modulepackage
1.1.2
Repository: https://github.com/pierrre/geohash.git
Documentation: pkg.go.dev

# README

Geohash

A geohash library for Go (Golang)

Go Reference

Features

  • Encode latitude/longitude to geohash
  • Decode geohash to latitude/longitude
  • Round a geohash box to a single location
  • Commande-line tool

# Packages

No description provided by the author

# Functions

Decode decode a geohash to a [Box].
Encode encodes a location to a geohash.
EncodeAuto encodes a location to a geohash using the most suitable precision.
GetNeighbors returns a struct representing the [Neighbors] of the supplied geohash in each of the cardinal and intercardinal directions.

# Structs

Box is a spatial data structure.
Neighbors will contain the geohashes for the neighbors of the supplied geohash in each of the cardinal and intercardinal directions.
Point represents a location (latitude and longitude).
Range represents a range (min/max) on latitude or longitude.