Localize Address version 0.1.0
[0.1.0] — April 16th, 2026
Highlights
Initial release of Localize.Address providing address parsing via libpostal NIF and locale-aware address formatting via OpenCageData address-formatting templates.
-
Parse unstructured address strings into a structured
Localize.Address.Addressstruct with labeled components (house number, road, city, state, postcode, country, etc.). -
Format addresses according to local conventions for 267 countries and territories. Passes 450/459 (98%) of the OpenCageData conformance test suite with 242/251 countries at 100%.
-
Capitalize parsed addresses with Unicode-aware titlecasing via
Unicode.String.titlecase/2, with postcodes uppercased and codes/numbers left unchanged. -
Territory resolution from explicit territory codes, locale identifiers, or the current process locale, following the same pattern as
Localize.PhoneNumber. -
State and county code lookup using OpenCageData state_codes data with
Localize.Territory.subdivision_name/2as a fallback for reverse lookups (e.g., "California" ↔ "CA"). -
Dependent territory handling including NL → CW/AW/SX remapping for Caribbean territories, CN → default template for Macau/Hong Kong SARs, and
use_countrytemplate inheritance withchange_countryinterpolation for 40+ dependent territories.