Faker v0.12.0 Faker.Address.Es View Source
Functions for generating addresses in Spanish
Link to this section Summary
Functions
Return random building number.
Return city name.
Return city prefix.
Return country.
Return country code.
Return random secondary address.
Return state.
Return state abbr.
Return street address.
Return street_address/0
or if argument is true
adds secondary_address/0
.
Return street name.
Return street suffix.
Return time zone.
Return random postcode.
Link to this section Functions
Link to this function
building_number()
View Source
building_number()
View Source
building_number() :: String.t()
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"
Link to this function
city()
View Source
city()
View Source
city() :: String.t()
city() :: String.t()
Return city name.
Examples
iex> Faker.Address.Es.city()
"Elizabeth"
iex> Faker.Address.Es.city()
"Rolfson"
iex> Faker.Address.Es.city()
"Burgos Conor"
iex> Faker.Address.Es.city()
"Hardy"
Link to this function
city_prefix()
View Source
city_prefix()
View Source
city_prefix() :: String.t()
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"
Link to this function
country()
View Source
country()
View Source
country() :: String.t()
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"
Link to this function
country_code()
View Source
country_code()
View Source
country_code() :: String.t()
country_code() :: String.t()
Return country code.
Examples
iex> Faker.Address.Es.country_code()
"ES"
Link to this function
secondary_address()
View Source
secondary_address()
View Source
secondary_address() :: String.t()
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"
Link to this function
state()
View Source
state()
View Source
state() :: String.t()
state() :: String.t()
Return state.
Examples
iex> Faker.Address.Es.state()
"Castilla-La Mancha"
iex> Faker.Address.Es.state()
"Comunidad Valenciana"
iex> Faker.Address.Es.state()
"Galicia"
iex> Faker.Address.Es.state()
"Cataluña"
Link to this function
state_abbr()
View Source
state_abbr()
View Source
state_abbr() :: String.t()
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"
Link to this function
street_address()
View Source
street_address()
View Source
street_address() :: String.t()
street_address() :: String.t()
Return street address.
Examples
iex> Faker.Address.Es.street_address()
"Elizabeth Mercado 26"
iex> Faker.Address.Es.street_address()
"Padberg Senda s/n."
iex> Faker.Address.Es.street_address()
"Ryan Enrique Sector 05"
iex> Faker.Address.Es.street_address()
"Price Colonia 02"
Link to this function
street_address(arg1) View Source
Return street_address/0
or if argument is true
adds secondary_address/0
.
Examples
iex> Faker.Address.Es.street_address(true)
"Elizabeth Mercado 26 Esc. 610"
iex> Faker.Address.Es.street_address(false)
"Ryan Enrique Sector 05"
iex> Faker.Address.Es.street_address(false)
"Price Colonia 02"
iex> Faker.Address.Es.street_address(false)
"Ernser Calleja 2"
Link to this function
street_name()
View Source
street_name()
View Source
street_name() :: String.t()
street_name() :: String.t()
Return street name.
Examples
iex> Faker.Address.Es.street_name()
"Elizabeth Mercado"
iex> Faker.Address.Es.street_name()
"Sipes Trycia Colegio"
iex> Faker.Address.Es.street_name()
"Schiller Delphine Chalet"
iex> Faker.Address.Es.street_name()
"Murphy Sector"
Link to this function
street_suffix()
View Source
street_suffix()
View Source
street_suffix() :: String.t()
street_suffix() :: String.t()
Return street suffix.
Examples
iex> Faker.Address.Es.street_suffix()
"Entrada"
iex> Faker.Address.Es.street_suffix()
"Ramal"
iex> Faker.Address.Es.street_suffix()
"Mercado"
iex> Faker.Address.Es.street_suffix()
"Riera"
Link to this function
time_zone()
View Source
time_zone()
View Source
time_zone() :: String.t()
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"
Link to this function
zip_code()
View Source
zip_code()
View Source
zip_code() :: String.t()
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"