Skip to content

mausimag/geolib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

Geo calculations

Based on: https://en.wikipedia.org/wiki/Geohash

Install

go get github.com/mausimag/geolib

Usage

location := GeoLocation{
	lat: 48.668683,
	lon: -4.329321,
}

encoded := GeoEncode(&location, 9)
fmt.Printf("Encoded: [%s]", encoded)

decoded := GeoDecode("gbsuv7z7x")
fmt.Printf("Decoded: [%v, %v]", decoded.lat, decoded.lon)

About

Geo calculations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages