Faker Elixir (octopus) v1.0.2 FakerElixir.Address

Generate fake data for the domain address

Summary

Functions

Return building number

Return city name

Return country name

Return country code

Return a latitude

Return a longitude

Return country struct with code & name

Return secondary address

Return a state name

Return a state code

Return street address

Return street name

Return street suffix

Return a time zone

Return a zip code

Functions

building_number()

Return building number

Examples

iex> FakerElixir.Address.building_number
"542"
city()

Return city name

Examples

iex> FakerElixir.Address.city
"Portland"
country()

Return country name

Examples

iex> FakerElixir.Address.country
"Iceland"
country_code()

Return country code

Examples

iex> FakerElixir.Address.country_code
"NY"
latitude()

Return a latitude

Examples

iex> FakerElixir.Address.latitude
-71.67369045432866
longitude()

Return a longitude

Examples

iex> FakerElixir.Address.longitude
-114.67722189422487
make_country()

Return country struct with code & name.

Examples

iex> FakerElixir.Address.make_country
%{code: "MY", name: "Malaysia"}
secondary_address()

Return secondary address

Examples

iex> FakerElixir.Address.secondary_address
"Apt. 752"
state()

Return a state name

Examples

iex> FakerElixir.Address.state
"New Jersey"
state_code()

Return a state code

Examples

iex> FakerElixir.Address.state_code
"TX"
street_address()

Return street address

Examples

iex> FakerElixir.Address.street_address
"786 Willow Parkways"
street_name()

Return street name

Examples

iex> FakerElixir.Address.street_name
"McLaughlin Mills"
street_suffix()

Return street suffix

Examples

iex> FakerElixir.Address.street_suffix
"Lodge"
time_zone()

Return a time zone

Examples

iex> FakerElixir.Address.time_zone
"Europe/Sarajevo"
zip_code()

Return a zip code

Examples

iex> FakerElixir.Address.zip_code
"59146-7626"