Documentation ¶
Overview ¶
Package geohash provides an implementation of geohash.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeAuto ¶
EncodeAuto encodes a location to a geohash using the most suitable precision.
Types ¶
type Box ¶
type Box struct {
Lat, Lon Range
}
Box is a spatial data structure.
It is defined by 2 ranges of latitude/longitude.
type Neighbors ¶
type Neighbors struct { North string NorthEast string East string SouthEast string South string SouthWest string West string NorthWest string }
Neighbors will contain the geohashes for the neighbors of the supplied geohash in each of the cardinal and intercardinal directions.
type Point ¶
type Point struct {
Lat, Lon float64
}
Point represents a location (latitude and longitude).
Click to show internal directories.
Click to hide internal directories.