address_standardizer
address_standardizer · Used to parse an address into constituent elements. Generally used to support geocoding address normalization step.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 1505 | address_standardizer | address_standardizer | 3.7 | GIS | MIT | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | nominatim_fdw geoip country tzf pg_geohash ogr_fdw addressing_dictionary |
| Siblings | address_standardizer_data_us |
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 3.7.0 | PIGSTY 3.7.0 | PIGSTY 3.7.0 | PIGSTY 3.7.0 |
| el8.aarch64 | N/A | PIGSTY 3.7.0 | PIGSTY 3.7.0 | PIGSTY 3.7.0 | PIGSTY 3.7.0 |
| el9.x86_64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| el9.aarch64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| el10.x86_64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| el10.aarch64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| d12.x86_64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| d12.aarch64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| d13.x86_64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| d13.aarch64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| u22.x86_64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| u22.aarch64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| u24.x86_64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| u24.aarch64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| u26.x86_64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
| u26.aarch64 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 | PGDG 3.7.0 |
Source
github.com/postgis/address_standardizer
address_standardizer-3.7.0.tar.gz
Install
Make sure PGDG repo available:
Install this extension with pig:
Create this extension with:
Usage
Address Standardizer: Address parsing and standardization for PostGIS
The Address Standardizer is a PostGIS extension that parses a single-line address string into a structured form using configurable lexicon, grammar, and rules tables. It is a more flexible alternative to the built-in normalize_address function in the TIGER geocoder.
Setup
Standardizing Addresses
The core function takes an address string and three table references (lex, gaz, rules):
The result contains structured fields:
| Field | Description |
|---|---|
building | Building name or identifier |
house_num | Street number |
predir | Prefix direction (N, S, E, W) |
qual | Qualifier |
pretype | Prefix type |
name | Street name |
suftype | Suffix type (St, Ave, Blvd) |
sufdir | Suffix direction |
ruralroute | Rural route |
extra | Extra information |
city | City name |
state | State |
country | Country |
postcode | ZIP/postal code |
box | PO Box |
unit | Unit/apartment number |
Lexicon, Gazetteer, and Rules Tables
The standardizer is driven by three user-configurable tables:
Lexicon (lex) – Maps input tokens to standardized forms and token classes:
Gazetteer (gaz) – Maps place names (cities, states) to standard forms:
Rules (rules) – Defines grammar rules for parsing addresses:
For US addresses, the address_standardizer_data_us extension provides pre-built data for these tables.