コード例 #1
0
ファイル: location_set.go プロジェクト: ride/go-proximity
func encode(lat, lng float64) float64 {
	return float64(geohash.EncodeIntWithPrecision(lat, lng, maxBitDepth))
}
コード例 #2
0
ファイル: example_test.go プロジェクト: mmcloughlin/geohash
func ExampleEncodeIntWithPrecision() {
	fmt.Printf("%08x\n", geohash.EncodeIntWithPrecision(48.858, 2.294, 32))
	// Output: d0139d52
}