postgis_tiger_geocoder
postgis : PostGIS tiger geocoder and reverse geocoder
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 1504 | postgis_tiger_geocoder | postgis | 3.6.4 |
GIS | GPL-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-dt- | No | Yes | No | Yes | no | yes |
| Relationships | |
|---|---|
| Schemas | tiger |
| Requires | postgis fuzzystrmatch |
| See Also | nominatim_fdw geoip tzf pg_geohash ogr_fdw |
| Siblings | postgis postgis_topology postgis_raster postgis_sfcgal address_standardizer 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 |
postgis, fuzzystrmatch |
| 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
PostGIS TIGER Geocoder: US Census TIGER/Line geocoding for PostGIS
The PostGIS TIGER Geocoder provides geocoding and reverse geocoding capabilities for US addresses using US Census TIGER/Line data. It can parse an address string into a normalized form, find the geographic coordinates, and reverse-geocode coordinates back to an address.
Setup
This creates the tiger schema with the geocoder tables and functions.
Loading TIGER Data
Before geocoding, TIGER/Line data must be loaded for the states you need. The extension provides helper functions to generate the loading scripts:
This generates a shell script that uses shp2pgsql to load TIGER shapefiles. Run the generated script to populate the tiger_data schema with address ranges, edges, faces, and other data.
After loading:
Geocoding
Convert a US address string to geographic coordinates:
The rating indicates match quality (lower is better, 0 = exact match).
Reverse Geocoding
Convert coordinates back to a street address:
Address Normalization
Parse and normalize address strings without geocoding:
Returns components: address (number), predirAbbrev, streetName, streetTypeAbbrev, postdirAbbrev, internal, location (city), stateAbbrev, zip, parsed.
Configuration
The tiger.geocode_settings table controls geocoder behavior: