address_standardizer_data_us

address_standardizer_data_us

postgis : Address Standardizer US dataset example

Overview

ID Extension Package Version Category License Language
1506
address_standardizer_data_us
postgis
3.6.2
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
pgrouting
pointcloud
pointcloud_postgis
h3
h3_postgis
q3c
ogr_fdw
geoip
Siblings
postgis
postgis_topology
postgis_raster
postgis_sfcgal
postgis_tiger_geocoder
address_standardizer

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT
PGDG
3.6.2
18
17
16
15
14
postgis -
RPM
PGDG
3.6.2
18
17
16
15
14
postgis36_$v -
DEB
PGDG
3.6.2
18
17
16
15
14
postgresql-$v-postgis-3 -
Linux / PG PG18 PG17 PG16 PG15 PG14
el8.x86_64
PGDG 3.6.1
PGDG 3.6.1
PGDG 3.6.1
PGDG 3.6.1
PGDG 3.6.1
el8.aarch64
PGDG 3.6.1
PGDG 3.6.1
PGDG 3.6.1
PGDG 3.6.1
PGDG 3.6.1
el9.x86_64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
el9.aarch64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
el10.x86_64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
el10.aarch64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
d12.x86_64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
d12.aarch64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
d13.x86_64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
d13.aarch64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
u22.x86_64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
u22.aarch64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
u24.x86_64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
u24.aarch64
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2
PGDG 3.6.2

Source

Install

Make sure PGDG repo available:

pig repo add pgdg -u    # add pgdg repo and update cache

Install this extension with pig:

pig install postgis;		# install via package name, for the active PG version
pig install address_standardizer_data_us;		# install by extension name, for the current active PG version

pig install address_standardizer_data_us -v 18;   # install for PG 18
pig install address_standardizer_data_us -v 17;   # install for PG 17
pig install address_standardizer_data_us -v 16;   # install for PG 16
pig install address_standardizer_data_us -v 15;   # install for PG 15
pig install address_standardizer_data_us -v 14;   # install for PG 14

Create this extension with:

CREATE EXTENSION address_standardizer_data_us;

Usage

Address Standardizer Data US: US address data for the address_standardizer extension

This extension provides pre-built US lexicon, gazetteer, and rules data for use with the address_standardizer extension. It includes tables with common US street types, directional abbreviations, state names, and grammar rules needed to parse US addresses.

Setup

CREATE EXTENSION address_standardizer_data_us;

This creates the us_lex, us_gaz, and us_rules tables in the public schema, pre-populated with US address data.


Using with address_standardizer

Once installed, you can immediately standardize US addresses:

SELECT *
FROM standardize_address(
    'us_lex', 'us_gaz', 'us_rules',
    '123 Main Street NW, Apt 4B, Springfield, IL 62704'
);

The provided data covers common US address patterns including:

  • Street types (Street, Avenue, Boulevard, Drive, Lane, Court, etc.)
  • Directional prefixes and suffixes (North, South, N, S, NW, SE, etc.)
  • State names and abbreviations
  • Unit designators (Apt, Suite, Unit, etc.)
  • Highway designators (US, State, County, Interstate, etc.)
Last updated on