SB-6.1-PRE
This commit is contained in:
1 parent
690169a409
commit
358a25f522
3760 files changed
+300059
-36
No files matched your search
+21
@@ -0,0 +1,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'
|
||||
```
|
||||
Reference in new issue
Block a user