Faker.Address.It (Faker v0.16.0) View Source

Functions for generating addresses in Italian

Link to this section Summary

Functions

Return random building number.

Return city name.

Return city prefix.

Return city suffix.

Return province name. Data from https://dait.interno.gov.it/servizi-demografici/documentazione/anagaire-tabelle-comuni-province-consolati-statiterritori If you call region(), province() or province_abbr() separately you'll end up with inconsistent data. For example: "Lombardia", "Roma", "GE". If you want consisten data call region_province_abbr() instead, which will return something like ["Lombardia", "Milano", "MI"].

Return province code. Data from https://dait.interno.gov.it/servizi-demografici/documentazione/anagaire-tabelle-comuni-province-consolati-statiterritori If you call region(), province() or province_abbr() separately you'll end up with inconsistent data. For example: "Lombardia", "Roma", "GE". If you want consisten data call region_province_abbr() instead, which will return something like ["Lombardia", "Milano", "MI"].

Return region. If you call region(), province() or province_abbr() separately you'll end up with inconsistent data. For example: "Lombardia", "Roma", "GE". If you want consisten data call region_province_abbr() instead, which will return something like ["Lombardia", "Milano", "MI"].

Return a consistent list containing the region and province names with the province code. Data from https://dait.interno.gov.it/servizi-demografici/documentazione/anagaire-tabelle-comuni-province-consolati-statiterritori

Return random secondary address.

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

There are no state/region abbreviations in Italy.

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.

Link to this section Functions

Specs

building_number() :: String.t()

Return random building number.

Examples

iex> Faker.Address.It.building_number()
"154"
iex> Faker.Address.It.building_number()
"64"
iex> Faker.Address.It.building_number()
"1"
iex> Faker.Address.It.building_number()
"832"

Specs

city() :: String.t()

Return city name.

Examples

iex> Faker.Address.It.city()
"Dionigi Marittima"
iex> Faker.Address.It.city()
"Quarto Gennaro"
iex> Faker.Address.It.city()
"Sesto Maurizia"
iex> Faker.Address.It.city()
"Case di Taffy"

Specs

city_prefix() :: String.t()

Return city prefix.

Examples

iex> Faker.Address.It.city_prefix()
"Quarto"
iex> Faker.Address.It.city_prefix()
"Castello"
iex> Faker.Address.It.city_prefix()
"Quarto"
iex> Faker.Address.It.city_prefix()
"Santa"

Specs

city_suffix() :: String.t()

Return city suffix.

Examples

iex> Faker.Address.It.city_suffix()
"di sotto"
iex> Faker.Address.It.city_suffix()
"di sopra"
iex> Faker.Address.It.city_suffix()
"Marittima"

Specs

country() :: String.t()

Return country. List from http://publications.europa.eu/code/it/it-5000500.htm

Examples

iex> Faker.Address.It.country()
"Etiopia"
iex> Faker.Address.It.country()
"Cipro"
iex> Faker.Address.It.country()
"Timor Leste"
iex> Faker.Address.It.country()
"Nicaragua"

Specs

country_code() :: String.t()

Return country code. List from http://publications.europa.eu/code/it/it-5000500.htm

Examples

iex> Faker.Address.It.country_code()
"CO"
iex> Faker.Address.It.country_code()
"LV"

Specs

province() :: String.t()

Return province name. Data from https://dait.interno.gov.it/servizi-demografici/documentazione/anagaire-tabelle-comuni-province-consolati-statiterritori If you call region(), province() or province_abbr() separately you'll end up with inconsistent data. For example: "Lombardia", "Roma", "GE". If you want consisten data call region_province_abbr() instead, which will return something like ["Lombardia", "Milano", "MI"].

## Examples

iex> Faker.Address.It.province()
"Barletta-Andria-Trani"
iex> Faker.Address.It.province()
"Trento"
iex> Faker.Address.It.province()
"Pavia"
iex> Faker.Address.It.province()
"Caserta"

Specs

province_abbr() :: String.t()

Return province code. Data from https://dait.interno.gov.it/servizi-demografici/documentazione/anagaire-tabelle-comuni-province-consolati-statiterritori If you call region(), province() or province_abbr() separately you'll end up with inconsistent data. For example: "Lombardia", "Roma", "GE". If you want consisten data call region_province_abbr() instead, which will return something like ["Lombardia", "Milano", "MI"].

## Examples

iex> Faker.Address.It.province_abbr()
"BA"
iex> Faker.Address.It.province_abbr()
"TR"
iex> Faker.Address.It.province_abbr()
"PG"
iex> Faker.Address.It.province_abbr()
"CE"

Specs

region() :: String.t()

Return region. If you call region(), province() or province_abbr() separately you'll end up with inconsistent data. For example: "Lombardia", "Roma", "GE". If you want consisten data call region_province_abbr() instead, which will return something like ["Lombardia", "Milano", "MI"].

## Examples

iex> Faker.Address.It.region()
"Molise"
iex> Faker.Address.It.region()
"Basilicata"
iex> Faker.Address.It.region()
"Toscana"
iex> Faker.Address.It.region()
"Emilia-Romagna"

Specs

region_province_abbr() :: [String.t()]

Return a consistent list containing the region and province names with the province code. Data from https://dait.interno.gov.it/servizi-demografici/documentazione/anagaire-tabelle-comuni-province-consolati-statiterritori

Examples

iex> Faker.Address.It.region_province_abbr()
["Calabria", "Reggio di Calabria", "RC"]
iex> Faker.Address.It.region_province_abbr()
["Trentino-Alto Adige/Südtirol", "Bolzano/Bozen", "BZ"]
iex> Faker.Address.It.region_province_abbr()
["Puglia", "Bari", "BA"]
iex> Faker.Address.It.region_province_abbr()
["Emilia-Romagna", "Piacenza", "PC"]

Specs

secondary_address() :: String.t()

Return random secondary address.

## Examples

iex> Faker.Address.It.secondary_address()
"/A"
iex> Faker.Address.It.secondary_address()
"/B"
iex> Faker.Address.It.secondary_address()
"/A"
iex> Faker.Address.It.secondary_address()
"Edificio 26"

Specs

state() :: String.t()

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

Specs

state_abbr() :: String.t()

There are no state/region abbreviations in Italy.

Specs

street_address() :: String.t()

Return street address.

## Examples

iex> Faker.Address.It.street_address()
"Corso Agave, 2"
iex> Faker.Address.It.street_address()
"Viale Keith, 083"
iex> Faker.Address.It.street_address()
"Strada per Liguria, 523"
iex> Faker.Address.It.street_address()
"Viale De Rosa, 03"

Specs

street_address(true | any()) :: String.t()

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

## Examples

iex> Faker.Address.It.street_address(true)
"Corso Agave, 2/B"
iex> Faker.Address.It.street_address(false)
"Via per Piemonte, 832"
iex> Faker.Address.It.street_address(false)
"Vicolo Longo, 2"
iex> Faker.Address.It.street_address(false)
"Via Privata Galli, 2"

Specs

street_name() :: String.t()

Return street name.

## Examples

iex> Faker.Address.It.street_name()
"Corso Agave"
iex> Faker.Address.It.street_name()
"Via Privata Gennaro Mazza"
iex> Faker.Address.It.street_name()
"Vicolo Shaula Lombardi"
iex> Faker.Address.It.street_name()
"Strada per Giuliani"

Specs

street_prefix() :: String.t()

Return street prefix.

## Examples

iex> Faker.Address.It.street_prefix()
"Vicolo"
iex> Faker.Address.It.street_prefix()
"Corso"
iex> Faker.Address.It.street_prefix()
"Piazzale"
iex> Faker.Address.It.street_prefix()
"Piazza"

Specs

time_zone() :: String.t()

Return time zone.

## Examples

iex> Faker.Address.It.time_zone()
"Australia/Sydney"
iex> Faker.Address.It.time_zone()
"America/Guyana"
iex> Faker.Address.It.time_zone()
"Asia/Kathmandu"
iex> Faker.Address.It.time_zone()
"Europa/Vienna"

Specs

zip_code() :: String.t()

Return random postcode.

## Examples

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