1.0.0 • Published 6 years ago

blox-geohash v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

\<blox-geohash>

creates a geohash from the users location

Install the Polymer-CLI

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.

Install blox-geohash

$ npm install blox-geohash

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Import

$ import 'blox-geohash';

Javascript get location

<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>
1.0.0

6 years ago