6603ad4006
Updated TIGER database link in documentation |
||
---|---|---|
.. | ||
convert.sh | ||
README.md | ||
tiger_address_convert.py | ||
tiger_county_fips.json |
US TIGER address data
Convert TIGER/Line dataset of the US Census Bureau to SQL files which can be imported by Nominatim. The created tables in the Nominatim database are separate from OpenStreetMap tables and get queried at search time separately.
The dataset gets updated once per year. Downloading is prone to be slow (can take a full day) and converting them can take hours as well.
Replace '2019' with the current year throughout.
-
Install the GDAL library and python bindings and the unzip tool
Ubuntu:
sudo apt-get install python3-gdal unzip
-
Get the TIGER 2019 data. You will need the EDGES files (3,233 zip files, 11GB total).
wget -r ftp://ftp2.census.gov/geo/tiger/TIGER2019/EDGES/
-
Convert the data into SQL statements. Adjust the file paths in the scripts as needed
cd data-sources/us-tiger ./convert.sh
-
Maybe: package the created files
tar -czf tiger2019-nominatim-preprocessed.tar.gz tiger