I'm trying to write a simple go application that interfaces with DynamoDB to store points as a geohash.
Essentially I'm trying to replicate what the Java geo lib for DynamoDB does, but with Go.
I'm using https://github.com/mmcloughlin/geohash to encode the point:
geohash.EncodeInt(47.61121, -122.31846) // produces 6379143490183141059
The Geo Library for Amazon DynamoDB blog post mentions that a negative 64-bit geohash encoding of a point is possible. Specifically they mention -6093522776912656819
.
I can't find a lat/lng combination, that when run through geohash.EncodeInt()
produces a negative integer value.
What lat/lng combination will encode to a negative integer?