new Address(opts)
Class for generate fake address data.
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options
Properties
|
Methods
address()
Get a random full address (include Street number, suffix and name).
city()
Get a random city for current locale.
continent(opts)
Get a random continent name or continent
code (code in international format)
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options
Properties
|
coordinates()
Generate random geo coordinates.
country()
Get a random country.
countryISO(opts)
Get a random ISO code of country.
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options
Properties
|
latitude()
Generate a random value of latitude (-90 to +90).
longitude()
Generate a random value of longitude (-180 to +180).
state(opts)
Get a random states or subject of country.
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | Options
Properties
|
streetName()
Get a random street name.
streetNumber()
Generate a random street number.
streetSuffix()
Get a random street suffix.