1.0.7 • Published 10 years ago

geohash64 v1.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

geohash64

Dependencies  Dependencies  Build Status

Project is attempt of porting:

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)
1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago