@Address()

New in 2.0

Generate addresses

GeographicSince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
dictStringCustom value dictionary, multiple values separated by '|'
localeStringInternationalized languages, currently only supporting Chinese (zh_CN) and English (en), default zh_CN

Usage

@Address()

Generate address (Chinese)

Example:
@Address()
Output:
恩施土家族苗族自治州利川市上海市浦东新区迎宾大道6000号
@Address(dict)

Generate address using specified dictionary

Example:
@Address(地址1|地址2|地址3)
Output:
地址3地址1
@Address(locale)

Generate address in specified locale

Example:
@Address(en)
Output:
1112 Hermitage Rd NW, Edmonton, AB T5A 4M4Gangwon-do, Yeongweol, Yeongwol-eup, Hasong-ri, 217-2
← Back to Function Reference