geohash64

1.0.7 • Public • Published

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)

Dependencies (0)

    Dev Dependencies (13)

    Package Sidebar

    Install

    npm i geohash64

    Weekly Downloads

    1

    Version

    1.0.7

    License

    MIT

    Last publish

    Collaborators

    • nmccready