geohash64
Project is attempt of porting:
-
google maps base64:
-
python-geohash64 base64 geo encodings to nodejs. (eventually)
install
And then install with npm:
npm install
use
Overall you should refer to the specs..
But to enlighten everyone here are some specs copied here:
geohash64 = require 'geohash64'
manyHashes = ['_p~iF~ps|U', '_atqG`~oia@', '_flwFn`faV', '_t~fGfzxbW']
fullHash = manyHashes.reduce((prev, current) ->
prev + current)
#fullHash should be '_p~iF~ps|U_atqG`~oia@_flwFn`faV_t~fGfzxbW'
test1 = geohash64.encode(manyPoints) == fullHash
test2 = _.Equal(geohash64.decode(fullHash,true), manyPoints)
throw new Error('Hashes are not what expected!') unless (test1 and test2)