@firstclasspostcodes/geohash

Transforms latitude and longitude coordinates to geohashes.

Usage no npm install needed!

<script type="module">
  import firstclasspostcodesGeohash from 'https://cdn.skypack.dev/@firstclasspostcodes/geohash';
</script>

README

Geohash

Transform geographic coordinates in the form of latitude and longitude into numerical geohashes.

NPM JavaScript Style Guide Build Status Greenkeeper badge codecov Try geohash on RunKit

At Firstclasspostcodes, we use geohashes inside DynamoDB to quickly retrieve matching postcodes for a particular coordinate. Our solution has been adapted from this original blog post and we've extracted some of the code from an existing NPM library to suit our own purposes.

Getting Started

npm i @firstclasspostcodes/geohash --save

Then refer to the documentation here on how to start using it.