@Address()
New in 2.0Generate addresses
Geographic InformationSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| dict | — | — | Custom value dictionary, multiple values separated by '|' | |
| locale | — | — | Internationalized 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号