Skip to content

Commit

Permalink
replace 2022 with 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmail committed Nov 24, 2023
1 parent 3f8f039 commit 007448f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,31 @@ Replace '2021' with the current year throughout.

1. Install the GDAL library and python bindings and the unzip tool

```bash
# Ubuntu:
sudo apt-get install python3-gdal python3-pip unzip
pip3 install -r requirements.txt
```

2. Get the TIGER 2022 data. You will need the EDGES files
2. Get the TIGER 2023 data. You will need the EDGES files
(3,235 zip files, 11GB total).

wget -r ftp://ftp2.census.gov/geo/tiger/TIGER2022/EDGES/
wget -r ftp://ftp2.census.gov/geo/tiger/TIGER2023/EDGES/

3. Convert the data into CSV files. Adjust the file paths in the scripts as needed

./convert.sh <input-path> <output-path>

4. Maybe: package the created files

tar -czf tiger2022-nominatim-preprocessed.csv.tar.gz tiger
tar -czf tiger2023-nominatim-preprocessed.csv.tar.gz tiger


US Postcodes
-------------
Addtionally create a `us_postcodes.csv.gz` file with centroid coordinates.

cat output-path/*.csv | ./calculate_postcode_centroids.py | gzip -9 > us_postcodes.csv.gz
cat tiger/*.csv | ./calculate_postcode_centroids.py | gzip -9 > us_postcodes.csv.gz


License
Expand Down

0 comments on commit 007448f

Please sign in to comment.