Norwegian Postal Code Parser v0.4.0 PostalCode

Postal code parser for the Norwegian postal code system.

Link to this section Summary

Functions

Accepts a postal code in string format, and returns the postal place.

Link to this section Functions

Link to this function

postal_code_to_location(postal_code)

Link to this function

postal_code_to_place(postal_code)

Accepts a postal code in string format, and returns the postal place.

Examples

iex> PostalCode.postal_code_to_place("0186")

iex> PostalCode.postal_code_to_place("0638") :no_results

iex> PostalCode.postal_code_to_place(0186)

iex> PostalCode.postal_code_to_place("018")