ExCountries.Subdivision (ex_countries v0.0.2)

This module contains list of States or Provinces of countries and returns state_or_province codes by name and vice versa.

Summary

Functions

Get State or province code by full name and returns nil if not found.

Functions

Link to this function

code_by_name(state_name)

Get State or province code by full name and returns nil if not found.

Examples

iex> ExCountries.Subdivision.code_by_name("Punjab")
"PB"

iex> ExCountries.Subdivision.code_by_name("wrong name")
nil