Socket
Book a DemoInstallSign in
Socket

geohash64

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geohash64

port attempt at a google maps base64 geohash of https://gist.github.com/signed0/2031157 from python to node

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
1
-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

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)

FAQs

Package last updated on 02 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts