Documentation
¶
Index ¶
- func Distance(a, b GeoHash) float64
- func ToBBox(hash GeoHash) (n float64, e float64, s float64, w float64)
- func ToLatLng(hash GeoHash) (lat float64, lng float64)
- func Weights(hashes GeoHashes, hashNorthEast, hashSouthWest GeoHash) []float64
- type GeoHash
- func EastOf(hash GeoHash) GeoHash
- func Expand(hash GeoHash, radius float64) (hashNorthEast, hashSouthWest GeoHash)
- func New(lat, lng float64, precision ...Precision) GeoHash
- func NorthOf(hash GeoHash) GeoHash
- func Round(hash GeoHash, precision Precision) GeoHash
- func SouthOf(hash GeoHash) GeoHash
- func ToEast(hash GeoHash, n int) (east GeoHash)
- func ToNorth(hash GeoHash, n int) (north GeoHash)
- func ToSouth(hash GeoHash, n int) (south GeoHash)
- func ToWest(hash GeoHash, n int) (west GeoHash)
- func WestOf(hash GeoHash) GeoHash
- type GeoHashes
- type Precision
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GeoHash ¶
type GeoHash string
GeoHash representation
type GeoHashes ¶
type GeoHashes []GeoHash
Unordered Set of GeoHashes
func GeoHashesIn ¶
Calculate all GeoHashes that overlaps with area defined by two points
func Predecessors ¶
Calculates all predecessors (higher rank) GeoHashes from the set.
func ShortestPath ¶ added in v0.2.2
Build shortest path from sequence of hashes
Click to show internal directories.
Click to hide internal directories.