1.0.2 • Published 6 years ago

geohash-distance v1.0.2

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

geohash-distance

Functions to calculate the distance between two geohashes.

Methods summary:

  • inKm: distance between two geohashes in kilometers.
  • inMiles: distance between two geohashes in miles.

Install

from npm

npm install --save geohash-distance

Usage

  • GeohashDistance.inKm(hash1, hash2): return distance in kilometers between the given hashes
  • GeohashDistance.inMiles(hash1, hash2): return distance in miles between the given hashes

Import within node.js

var GeohashDistance = require('geohash-distance');