Example #1
0
func encode(lat, lng float64) float64 {
	return float64(geohash.EncodeIntWithPrecision(lat, lng, maxBitDepth))
}
Example #2
0
func ExampleEncodeIntWithPrecision() {
	fmt.Printf("%08x\n", geohash.EncodeIntWithPrecision(48.858, 2.294, 32))
	// Output: d0139d52
}