1.1.1 • Published 8 months ago

geocoordinate-to-geohash v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

geocoordinate-to-geohash

Converts a geocoordinate to a geohash

Support TypeScript!

Usage

$ yarn add geocoordinate-to-geohash
import { geocoordinateToGeohash } from "geocoordinate-to-geohash";
const latitude = 37.56616;
const longitude = 126.978356;
const precision = 5;
const geohash = geocoordinateToGeohash({
  latitude,
  longitude,
  precision, // default is 6
});

console.log(geohash);

Precision

the maximum level of geohash precision is 12 and it represents a tile of 3.7 cm * 1.9 cm. finding your location can be very efficient and some what precise with Geohash.

In depth understanding of this algorithm, please check geohash-algorithm

1.1.1

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago