ExZipcodes (ExZipcodes v0.1.0) View Source

Documentation for ExZipcodes.

Link to this section Summary

Functions

Look up a US zip code.

Link to this section Functions

Look up a US zip code.

Examples

iex> ExZipcodes.lookup(10011)
{:ok, %{
   city: "New York",
   state: "NY"
  }}

iex> ExZipcodes.lookup("not a zip code")
{:error, "Zip code not found"}