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