View Source Faker.Address.Es (Faker v0.18.0)

Functions for generating addresses in Spanish

Summary

Functions

Return random building number.

Return city name.

Return city prefix.

Return country.

Return country code.

Return region.Source

Return random secondary address.

Return state. But Spain doesn't have states so this calls Faker.Address.Es.region() instead.

Return state abbr.

Return street address.

Return street_address/0 or if argument is true adds secondary_address/0.

Return street name.

Return street prefix.

Return street suffix.

Return time zone.

Return random postcode.

Functions

@spec building_number() :: String.t()

Return random building number.

Examples

iex> Faker.Address.Es.building_number()
"s/n."
iex> Faker.Address.Es.building_number()
"5"
iex> Faker.Address.Es.building_number()
"26"
iex> Faker.Address.Es.building_number()
"61"
@spec city() :: String.t()

Return city name.

Examples

iex> Faker.Address.Es.city()
"Guillermina"
iex> Faker.Address.Es.city()
"Agosto"
iex> Faker.Address.Es.city()
"Burgos Alfonso"
iex> Faker.Address.Es.city()
"María José"
@spec city_prefix() :: String.t()

Return city prefix.

Examples

iex> Faker.Address.Es.city_prefix()
"Vitoria"
iex> Faker.Address.Es.city_prefix()
"Oviedo"
iex> Faker.Address.Es.city_prefix()
"Talavera de la Reina"
iex> Faker.Address.Es.city_prefix()
"Cáceres"
@spec country() :: String.t()

Return country.

Examples

iex> Faker.Address.Es.country()
"Cabo Verde"
iex> Faker.Address.Es.country()
"Malawi"
iex> Faker.Address.Es.country()
"Bielorusia"
iex> Faker.Address.Es.country()
"Mali"
@spec country_code() :: String.t()

Return country code.

Examples

iex> Faker.Address.Es.country_code()
"ES"
@spec region() :: String.t()

Return region.Source

Examples

iex> Faker.Address.Es.region()
"Extremadura"
iex> Faker.Address.Es.region()
"Aragón"
iex> Faker.Address.Es.region()
"País Vasco"
iex> Faker.Address.Es.region()
"Canarias"
@spec secondary_address() :: String.t()

Return random secondary address.

Examples

iex> Faker.Address.Es.secondary_address()
"Esc. 154"
iex> Faker.Address.Es.secondary_address()
"Esc. 646"
iex> Faker.Address.Es.secondary_address()
"Puerta 083"
iex> Faker.Address.Es.secondary_address()
"Esc. 970"
@spec state() :: String.t()

Return state. But Spain doesn't have states so this calls Faker.Address.Es.region() instead.

@spec state_abbr() :: String.t()

Return state abbr.

Examples

iex> Faker.Address.Es.state_abbr()
"Ara"
iex> Faker.Address.Es.state_abbr()
"Cbr"
iex> Faker.Address.Es.state_abbr()
"Mad"
iex> Faker.Address.Es.state_abbr()
"Gal"
@spec street_address() :: String.t()

Return street address.

Examples

iex> Faker.Address.Es.street_address()
"Arrabal Daniela 26"
iex> Faker.Address.Es.street_address()
"Mercado Navarro s/n."
iex> Faker.Address.Es.street_address()
"Parque Débora Huerta 05"
iex> Faker.Address.Es.street_address()
"Rambla Gutiérrez 02"
@spec street_address(true | any()) :: String.t()

Return street_address/0 or if argument is true adds secondary_address/0.

Examples

iex> Faker.Address.Es.street_address(true)
"Arrabal Daniela 26 Esc. 610"
iex> Faker.Address.Es.street_address(false)
"Parque Débora Huerta 05"
iex> Faker.Address.Es.street_address(false)
"Rambla Gutiérrez 02"
iex> Faker.Address.Es.street_address(false)
"Calle Murillo 2"
@spec street_name() :: String.t()

Return street name.

Examples

iex> Faker.Address.Es.street_name()
"Arrabal Daniela"
iex> Faker.Address.Es.street_name()
"Polígono Javier Acosta"
iex> Faker.Address.Es.street_name()
"Urbanización Gerardo Garza"
iex> Faker.Address.Es.street_name()
"Ferrocarril Huerta"
@spec street_prefix() :: String.t()

Return street prefix.

Examples

iex> Faker.Address.Es.street_prefix()
"Carretera"
iex> Faker.Address.Es.street_prefix()
"Arrabal"
iex> Faker.Address.Es.street_prefix()
"Chalet"
iex> Faker.Address.Es.street_prefix()
"Colegio"
@spec street_suffix() :: String.t()

Return street suffix.

Examples

iex> Faker.Address.Es.street_suffix()
"de arriba"
iex> Faker.Address.Es.street_suffix()
"Sur"
iex> Faker.Address.Es.street_suffix()
"de abajo"
iex> Faker.Address.Es.street_suffix()
"Norte"
@spec time_zone() :: String.t()

Return time zone.

Examples

iex> Faker.Address.Es.time_zone()
"Australia/Sydney"
iex> Faker.Address.Es.time_zone()
"America/Guyana"
iex> Faker.Address.Es.time_zone()
"Asia/Kathmandu"
iex> Faker.Address.Es.time_zone()
"Europa/Vienna"
@spec zip_code() :: String.t()

Return random postcode.

Examples

iex> Faker.Address.Es.zip_code()
"01542"
iex> Faker.Address.Es.zip_code()
"64610"
iex> Faker.Address.Es.zip_code()
"83297"
iex> Faker.Address.Es.zip_code()
"05235"