Skip to content

Functions to calculate the distance between geohashes

License

Notifications You must be signed in to change notification settings

200even/geohash-distance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

Functions to calculate the distance between geohashes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published