Faker v0.12.0 Faker.Address.It 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 country. List from http://publications.europa.eu/code/it/it-5000500.htm
Return country code. List from http://publications.europa.eu/code/it/it-5000500.htm
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
building_number()
View Source
building_number() :: String.t()
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"
city()
View Source
city() :: String.t()
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"
city_prefix()
View Source
city_prefix() :: String.t()
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"
city_suffix()
View Source
city_suffix() :: String.t()
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"
country()
View Source
country() :: String.t()
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"
country_code()
View Source
country_code() :: String.t()
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"
province()
View Source
province() :: String.t()
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"
province_abbr()
View Source
province_abbr() :: String.t()
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"
region()
View Source
region() :: String.t()
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"
region_province_abbr()
View Source
region_province_abbr() :: [String.t()]
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"]
secondary_address()
View Source
secondary_address() :: String.t()
secondary_address() :: String.t()
Return random secondary address.
## Examples
iex> Faker.Address.It.secondary_address()
"/A"
iex> Faker.Address.It.secondary_address()
"/B"
state()
View Source
state() :: String.t()
state() :: String.t()
Return state. But Italy doesn't have states so this calls Faker.Address.It.region() instead
state_abbr()
View Source
state_abbr() :: String.t()
state_abbr() :: String.t()
There are no state/region abbreviations in Italy.
street_address()
View Source
street_address() :: String.t()
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"
street_address(arg1) View Source
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"
street_name()
View Source
street_name() :: String.t()
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"
street_prefix()
View Source
street_prefix() :: String.t()
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"
time_zone()
View Source
time_zone() :: String.t()
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"
zip_code()
View Source
zip_code() :: String.t()
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"