address_standardizer
postgis : 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 | postgis | 3.6.4 |
GIS | GPL-2.0 | 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 |
| Siblings | postgis postgis_topology postgis_raster postgis_sfcgal postgis_tiger_geocoder address_standardizer_data_us |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PGDG | 3.6.4 |
18 17 16 15 14 | postgis |
- |
| RPM | PGDG | 3.6.3 |
18 17 16 15 14 | postgis36_$v |
- |
| DEB | PGDG | 3.6.4 |
18 17 16 15 14 | postgresql-$v-postgis-3 |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| el8.aarch64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| el9.x86_64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| el9.aarch64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| el10.x86_64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| el10.aarch64 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 | PGDG 3.6.3 |
| d12.x86_64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| d12.aarch64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| d13.x86_64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| d13.aarch64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u22.x86_64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u22.aarch64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u24.x86_64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u24.aarch64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u26.x86_64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
| u26.aarch64 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 | PGDG 3.6.4 |
Source
git.osgeo.org/gitea/postgis/postgis
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.