UNPKG

360 BMarkdownView Raw
1# geohash
2
3```js
4// usage
5chance.geohash()
6chance.geohash({ length: 5 })
7```
8
9Generate a random geohash. [More details on what a geohash is](http://en.wikipedia.org/wiki/Geohash).
10
11```js
12chance.geohash()
13=> 'h9xhn7y'
14```
15
16By default, includes 7 characters of accuracy. Can override with the `length` option.
17
18```js
19chance.geohash({ length: 5 })
20=> 'dr0kr'
21```