Skip to Content
🎲 RandBox へようこそ - 強力な JavaScript ランダムデータ生成ライブラリ! 詳細を見る

street

// 用法 randBox.street() randBox.street({country:it})

生成一个随机街道

randBox.street(); => 'Tesca Circle'

可选择要求返回短后缀

randBox.street({short_suffix: true}); => 'Jiled St'

可选择指定用于生成街道名称的音节数

randBox.street({syllables: 8}); => 'Teniefitinusewjircor Junction'

可选择指定一个国家来本地化街道前缀

randBox.street({country: 'it'}); => 'Via Nefba'

注意,目前对国家的支持仅限于:'us', 'it'。

最終更新日: