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'

最后更新于: