creates a geohash from the users location
First, make sure you have the Polymer CLI and npm (packaged with Node.js) installed. Run npm install to install your element's dependencies, then run polymer serve to serve your element locally.
$ npm install blox-geohash
$ polymer serve
$ polymer test
$ import 'blox-geohash';
<blox-geohash id="bloxGeohash"></blox-geohash>
<script>
this.$.bloxGeohash.getLocation()
.then((response) => {
return this.$.bloxGeohash.toGeohash(response.latitude, response.longitude)
})
.then((geohash) => {
// Do Something
})
.catch((err) => {
// Do Something
})
</script>