@Address()

New in 2.0

Generate addresses

Geographic InformationSince 2.0.0

Parameters

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

Usage

@Address(arg0)

Generate address using specified dictionary

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

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
@Address()

Generate address (Chinese)

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