Esempio n. 1
0
func main() {
	lat, lon := 45.321, 164.4533
	bucket := geozip.Encode(lat, lon, true, 18)
	fmt.Println(bucket)
}
Esempio n. 2
0
func BenchmarkGeozip(b *testing.B) {
	lat, lng := 40.743700, -73.991615
	for i := 0; i < b.N; i++ {
		geozip.Encode(lat, lng, false, 18)
	}
}