Created
December 14, 2017 20:50
-
-
Save lasseebert/254bb2165b2ce978c52e19df48b8ac40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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