point-in-geohash
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

point-in-geohash

Get a random coordinate or GeoJSON Point inside a geohash, or check if a coordinate is inside a geohash

Installation

Using npm:

npm i point-in-geohash

Using yarn:

yarn add point-in-geohash

Usage

Using CommonJS

const { isCoordInGeohash } = require('point-in-geohash');

isCoordInGeohash(40.41693093, -3.703500156922617, 'ezjmgtx'); // true

Using imports

import { randomCoordInGeohash } from 'point-in-geohash';

randomCoordInGeohash('ezjmgtx'); // [-3.703500156922617, 40.41693093]

Documentation

See DOCS

Package Sidebar

Install

npm i point-in-geohash

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

23.5 kB

Total Files

17

Last publish

Collaborators

  • alrico88