summaryrefslogtreecommitdiff
path: root/src/node_modules/chance/docs/location/geohash.md
blob: f71eb9a25daebbe326467998e702dac755015508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# geohash

```js
// usage
chance.geohash()
chance.geohash({ length: 5 })
```

Generate a random geohash. [More details on what a geohash is](http://en.wikipedia.org/wiki/Geohash).

```js
chance.geohash()
=> 'h9xhn7y'
```

By default, includes 7 characters of accuracy. Can override with the `length` option.

```js
chance.geohash({ length: 5 })
=> 'dr0kr'
```