Skip to content

Instantly share code, notes, and snippets.

@lasseebert
Created December 14, 2017 20:50
Show Gist options
  • Save lasseebert/254bb2165b2ce978c52e19df48b8ac40 to your computer and use it in GitHub Desktop.
Save lasseebert/254bb2165b2ce978c52e19df48b8ac40 to your computer and use it in GitHub Desktop.
@type address :: {zip :: String.t, city :: String.t, country :: String.t}
@type geolocation :: {latitude :: number, longitude :: number}
@doc """
Finds the geolocation for the given address
"""
@spec lookup(address) :: {:ok, geolocation} | {:error, any}
def lookup(address) do
# Logic that calls the inner modules
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment