address

faker. address

Source:

Methods

(static) cardinalDirection(useAbbr)

cardinal direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) cardinalDirection(useAbbr)

cardinal direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) city(format)

Generates a random localized city name. The format string can contain any method provided by faker wrapped in {{}}, e.g. {{name.firstName}} in order to build the city name.

If no format string is provided one of the following is randomly used:

  • {{address.cityPrefix}} {{name.firstName}}{{address.citySuffix}}
  • {{address.cityPrefix}} {{name.firstName}}
  • {{name.firstName}}{{address.citySuffix}}
  • {{name.lastName}}{{address.citySuffix}}
Source:
Parameters:
Name Type Description
format String

(static) city(format)

Generates a random localized city name. The format string can contain any method provided by faker wrapped in {{}}, e.g. {{name.firstName}} in order to build the city name.

If no format string is provided one of the following is randomly used:

  • {{address.cityPrefix}} {{name.firstName}}{{address.citySuffix}}
  • {{address.cityPrefix}} {{name.firstName}}
  • {{name.firstName}}{{address.citySuffix}}
  • {{name.lastName}}{{address.citySuffix}}
Source:
Parameters:
Name Type Description
format String

(static) cityPrefix()

Return a random localized city prefix

Source:

(static) cityPrefix()

Return a random localized city prefix

Source:

(static) citySuffix()

Return a random localized city suffix

Source:

(static) citySuffix()

Return a random localized city suffix

Source:

(static) country()

country

Source:

(static) country()

country

Source:

(static) countryCode(alphaCode)

countryCode

Source:
Parameters:
Name Type Description
alphaCode string

default alpha-2

(static) countryCode(alphaCode)

countryCode

Source:
Parameters:
Name Type Description
alphaCode string

default alpha-2

(static) county()

county

Source:

(static) county()

county

Source:

(static) direction(useAbbr)

direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) direction(useAbbr)

direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) latitude(max, min, precision)

latitude

Source:
Parameters:
Name Type Description
max Double

default is 90

min Double

default is -90

precision number

default is 4

(static) latitude(max, min, precision)

latitude

Source:
Parameters:
Name Type Description
max Double

default is 90

min Double

default is -90

precision number

default is 4

(static) longitude(max, min, precision)

longitude

Source:
Parameters:
Name Type Description
max Double

default is 180

min Double

default is -180

precision number

default is 4

(static) longitude(max, min, precision)

longitude

Source:
Parameters:
Name Type Description
max Double

default is 180

min Double

default is -180

precision number

default is 4

(static) ordinalDirection(useAbbr)

ordinal direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) ordinalDirection(useAbbr)

ordinal direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) secondaryAddress()

secondaryAddress

Source:

(static) secondaryAddress()

secondaryAddress

Source:

(static) state(useAbbr)

state

Source:
Parameters:
Name Type Description
useAbbr Boolean

(static) state(useAbbr)

state

Source:
Parameters:
Name Type Description
useAbbr Boolean

(static) stateAbbr()

stateAbbr

Source:

(static) stateAbbr()

stateAbbr

Source:

(static) streetAddress(useFullAddress)

Returns a random localized street address

Source:
Parameters:
Name Type Description
useFullAddress Boolean

(static) streetAddress(useFullAddress)

Returns a random localized street address

Source:
Parameters:
Name Type Description
useFullAddress Boolean

(static) streetName()

Returns a random localized street name

Source:

(static) streetName()

Returns a random localized street name

Source:

(static) streetPrefix()

streetPrefix

Source:

(static) streetPrefix()

streetPrefix

Source:

(static) streetSuffix()

streetSuffix

Source:

(static) streetSuffix()

streetSuffix

Source:

(static) timeZone()

Return a random time zone

Source:

(static) timeZone()

Return a random time zone

Source:

(static) zipCode(format)

Generates random zipcode from format. If format is not specified, the locale's zip format is used.

Source:
Parameters:
Name Type Description
format String

(static) zipCode(format)

Generates random zipcode from format. If format is not specified, the locale's zip format is used.

Source:
Parameters:
Name Type Description
format String

(static) zipCodeByState(state)

Generates random zipcode from state abbreviation. If state abbreviation is not specified, a random zip code is generated according to the locale's zip format. Only works for locales with postcode_by_state definition. If a locale does not have a postcode_by_state definition, a random zip code is generated according to the locale's zip format.

Source:
Parameters:
Name Type Description
state String

(static) zipCodeByState(state)

Generates random zipcode from state abbreviation. If state abbreviation is not specified, a random zip code is generated according to the locale's zip format. Only works for locales with postcode_by_state definition. If a locale does not have a postcode_by_state definition, a random zip code is generated according to the locale's zip format.

Source:
Parameters:
Name Type Description
state String

faker. address

Source:

Methods

(static) cardinalDirection(useAbbr)

cardinal direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) cardinalDirection(useAbbr)

cardinal direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) city(format)

Generates a random localized city name. The format string can contain any method provided by faker wrapped in {{}}, e.g. {{name.firstName}} in order to build the city name.

If no format string is provided one of the following is randomly used:

  • {{address.cityPrefix}} {{name.firstName}}{{address.citySuffix}}
  • {{address.cityPrefix}} {{name.firstName}}
  • {{name.firstName}}{{address.citySuffix}}
  • {{name.lastName}}{{address.citySuffix}}
Source:
Parameters:
Name Type Description
format String

(static) city(format)

Generates a random localized city name. The format string can contain any method provided by faker wrapped in {{}}, e.g. {{name.firstName}} in order to build the city name.

If no format string is provided one of the following is randomly used:

  • {{address.cityPrefix}} {{name.firstName}}{{address.citySuffix}}
  • {{address.cityPrefix}} {{name.firstName}}
  • {{name.firstName}}{{address.citySuffix}}
  • {{name.lastName}}{{address.citySuffix}}
Source:
Parameters:
Name Type Description
format String

(static) cityPrefix()

Return a random localized city prefix

Source:

(static) cityPrefix()

Return a random localized city prefix

Source:

(static) citySuffix()

Return a random localized city suffix

Source:

(static) citySuffix()

Return a random localized city suffix

Source:

(static) country()

country

Source:

(static) country()

country

Source:

(static) countryCode(alphaCode)

countryCode

Source:
Parameters:
Name Type Description
alphaCode string

default alpha-2

(static) countryCode(alphaCode)

countryCode

Source:
Parameters:
Name Type Description
alphaCode string

default alpha-2

(static) county()

county

Source:

(static) county()

county

Source:

(static) direction(useAbbr)

direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) direction(useAbbr)

direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) latitude(max, min, precision)

latitude

Source:
Parameters:
Name Type Description
max Double

default is 90

min Double

default is -90

precision number

default is 4

(static) latitude(max, min, precision)

latitude

Source:
Parameters:
Name Type Description
max Double

default is 90

min Double

default is -90

precision number

default is 4

(static) longitude(max, min, precision)

longitude

Source:
Parameters:
Name Type Description
max Double

default is 180

min Double

default is -180

precision number

default is 4

(static) longitude(max, min, precision)

longitude

Source:
Parameters:
Name Type Description
max Double

default is 180

min Double

default is -180

precision number

default is 4

(static) ordinalDirection(useAbbr)

ordinal direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) ordinalDirection(useAbbr)

ordinal direction

Source:
Parameters:
Name Type Description
useAbbr Boolean

return direction abbreviation. defaults to false

(static) secondaryAddress()

secondaryAddress

Source:

(static) secondaryAddress()

secondaryAddress

Source:

(static) state(useAbbr)

state

Source:
Parameters:
Name Type Description
useAbbr Boolean

(static) state(useAbbr)

state

Source:
Parameters:
Name Type Description
useAbbr Boolean

(static) stateAbbr()

stateAbbr

Source:

(static) stateAbbr()

stateAbbr

Source:

(static) streetAddress(useFullAddress)

Returns a random localized street address

Source:
Parameters:
Name Type Description
useFullAddress Boolean

(static) streetAddress(useFullAddress)

Returns a random localized street address

Source:
Parameters:
Name Type Description
useFullAddress Boolean

(static) streetName()

Returns a random localized street name

Source:

(static) streetName()

Returns a random localized street name

Source:

(static) streetPrefix()

streetPrefix

Source:

(static) streetPrefix()

streetPrefix

Source:

(static) streetSuffix()

streetSuffix

Source:

(static) streetSuffix()

streetSuffix

Source:

(static) timeZone()

Return a random time zone

Source:

(static) timeZone()

Return a random time zone

Source:

(static) zipCode(format)

Generates random zipcode from format. If format is not specified, the locale's zip format is used.

Source:
Parameters:
Name Type Description
format String

(static) zipCode(format)

Generates random zipcode from format. If format is not specified, the locale's zip format is used.

Source:
Parameters:
Name Type Description
format String

(static) zipCodeByState(state)

Generates random zipcode from state abbreviation. If state abbreviation is not specified, a random zip code is generated according to the locale's zip format. Only works for locales with postcode_by_state definition. If a locale does not have a postcode_by_state definition, a random zip code is generated according to the locale's zip format.

Source:
Parameters:
Name Type Description
state String

(static) zipCodeByState(state)

Generates random zipcode from state abbreviation. If state abbreviation is not specified, a random zip code is generated according to the locale's zip format. Only works for locales with postcode_by_state definition. If a locale does not have a postcode_by_state definition, a random zip code is generated according to the locale's zip format.

Source:
Parameters:
Name Type Description
state String