mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-06-04 09:52:59 +08:00
22 lines
360 B
Markdown
22 lines
360 B
Markdown
# 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'
|
|
```
|