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

Functions for generating addresses in Portuguese

Summary

Functions

Return random building number.

Return city name.

Return city suffixes.

Return city suffixes.

Return country.

Return country code.

Return neighborhood.

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 prefix.

Return time zone.

Return random postcode.

Functions

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

Return random building number.

Examples

iex> Faker.Address.PtBr.building_number()
"s/n"
iex> Faker.Address.PtBr.building_number()
"5426"
iex> Faker.Address.PtBr.building_number()
"6"
iex> Faker.Address.PtBr.building_number()
"0832"
@spec city() :: String.t()

Return city name.

Examples

iex> Faker.Address.PtBr.city()
"Senador Kaique Paulista"
iex> Faker.Address.PtBr.city()
"São Roberta dos Dourados"
iex> Faker.Address.PtBr.city()
"Salto das Flores"
iex> Faker.Address.PtBr.city()
"Kléber"
@spec city_prefix() :: String.t()

Return city suffixes.

Examples

iex> Faker.Address.PtBr.city_prefix()
"Santo"
iex> Faker.Address.PtBr.city_prefix()
"Senador"
iex> Faker.Address.PtBr.city_prefix()
"Senador"
iex> Faker.Address.PtBr.city_prefix()
"Alta"
@spec city_suffixes() :: String.t()

Return city suffixes.

Examples

iex> Faker.Address.PtBr.city_suffixes()
"da Serra"
iex> Faker.Address.PtBr.city_suffixes()
"dos Dourados"
iex> Faker.Address.PtBr.city_suffixes()
"da Serra"
iex> Faker.Address.PtBr.city_suffixes()
"Paulista"
@spec country() :: String.t()

Return country.

Examples

iex> Faker.Address.PtBr.country()
"Ilhas Virgens Britânicas"
iex> Faker.Address.PtBr.country()
"Coreia do Sul"
iex> Faker.Address.PtBr.country()
"Bolívia"
iex> Faker.Address.PtBr.country()
"Mongólia"
@spec country_code() :: String.t()

Return country code.

Examples

iex> Faker.Address.PtBr.country_code()
"BR"
@spec neighborhood() :: String.t()

Return neighborhood.

Examples

iex> Faker.Address.PtBr.neighborhood()
"Granja De Freitas"
iex> Faker.Address.PtBr.neighborhood()
"Novo Ouro Preto"
iex> Faker.Address.PtBr.neighborhood()
"Padre Eustáquio"
iex> Faker.Address.PtBr.neighborhood()
"Nossa Senhora Aparecida"
@spec secondary_address() :: String.t()

Return random secondary address.

Examples

iex> Faker.Address.PtBr.secondary_address()
"Sala 154"
iex> Faker.Address.PtBr.secondary_address()
"Sala 646"
iex> Faker.Address.PtBr.secondary_address()
"AP 083"
iex> Faker.Address.PtBr.secondary_address()
"Sala 970"
@spec state() :: String.t()

Return state.

Examples

iex> Faker.Address.PtBr.state()
"Rondônia"
iex> Faker.Address.PtBr.state()
"Rio Grande do Sul"
iex> Faker.Address.PtBr.state()
"Distrito Federal"
iex> Faker.Address.PtBr.state()
"Ceará"
@spec state_abbr() :: String.t()

Return state abbr.

Examples

iex> Faker.Address.PtBr.state_abbr()
"RO"
iex> Faker.Address.PtBr.state_abbr()
"RS"
iex> Faker.Address.PtBr.state_abbr()
"DF"
iex> Faker.Address.PtBr.state_abbr()
"CE"
@spec street_address() :: String.t()

Return street address.

Examples

iex> Faker.Address.PtBr.street_address()
"Estação Kaique, 2"
iex> Faker.Address.PtBr.street_address()
"Lagoa Matheus, 0832"
iex> Faker.Address.PtBr.street_address()
"Estrada Diegues, s/n"
iex> Faker.Address.PtBr.street_address()
"Praia Limeira, 020"
@spec street_address(true | any()) :: String.t()

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

Examples

iex> Faker.Address.PtBr.street_address(true)
"Estação Kaique, 2 Sala 461"
iex> Faker.Address.PtBr.street_address(false)
"Conjunto Rodrigo, 970"
iex> Faker.Address.PtBr.street_address(false)
"Trecho Davi Luiz Limeira, 020"
iex> Faker.Address.PtBr.street_address(false)
"Sítio Maria Eduarda, 097"
@spec street_name() :: String.t()

Return street name.

Examples

iex> Faker.Address.PtBr.street_name()
"Estação Kaique"
iex> Faker.Address.PtBr.street_name()
"Morro Louise Macieira"
iex> Faker.Address.PtBr.street_name()
"Loteamento Maria Alice Junqueira"
iex> Faker.Address.PtBr.street_name()
"Condomínio da Maia"
@spec street_prefix() :: String.t()

Return street prefix.

Examples

iex> Faker.Address.PtBr.street_prefix()
"Recanto"
iex> Faker.Address.PtBr.street_prefix()
"Estação"
iex> Faker.Address.PtBr.street_prefix()
"Feira"
iex> Faker.Address.PtBr.street_prefix()
"Fazenda"
@spec time_zone() :: String.t()

Return time zone.

Examples

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

Return random postcode.

Examples

iex> Faker.Address.PtBr.zip_code()
"15426461"
iex> Faker.Address.PtBr.zip_code()
"83297052"
iex> Faker.Address.PtBr.zip_code()
"57.020-303"
iex> Faker.Address.PtBr.zip_code()
"09733-760"