1 | # street
|
2 |
|
3 | ```js
|
4 | // usage
|
5 | chance.street()
|
6 | chance.street({country:it})
|
7 | ```
|
8 |
|
9 | Generate a random street
|
10 |
|
11 | ```js
|
12 | chance.street();
|
13 | => 'Tesca Circle'
|
14 | ```
|
15 |
|
16 | Optionally mandate that it returns a short suffix
|
17 |
|
18 | ```js
|
19 | chance.street({short_suffix: true});
|
20 | => 'Jiled St'
|
21 | ```
|
22 |
|
23 | Optionally specify the number of syllables used to generate the street name
|
24 |
|
25 | ```js
|
26 | chance.street({syllables: 8});
|
27 | => 'Teniefitinusewjircor Junction'
|
28 | ```
|
29 |
|
30 | Optionally specify a country to localize street prefixes
|
31 |
|
32 | ```js
|
33 | chance.street({country: 'it'});
|
34 | => 'Via Nefba'
|
35 | ```
|
36 |
|
37 | Note, currently support for country is limited to: `'us', 'it'`.
|