]> git.openstreetmap.org Git - nominatim.git/blobdiff - docs/admin/Import-and-Update.md
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / docs / admin / Import-and-Update.md
index 35306a4df17ea6a35587f5521d4a8472cc86e675..257e5ebcc5e591245a773554e59fcb4f859c1db3 100644 (file)
@@ -51,12 +51,14 @@ size of Nominatim. They also increase the install time by an hour or so.
 the initial import of the data if you want the rankings applied to the
 loaded data.
 
-### UK postcodes
+### Great Britain, USA postcodes
 
-Nominatim can use postcodes from an external source to improve searches that involve a UK postcode. This data can be optionally downloaded:
+Nominatim can use postcodes from an external source to improve searches that
+involve a GB or US postcode. This data can be optionally downloaded:
 
     cd $NOMINATIM_SOURCE_DIR/data
     wget https://www.nominatim.org/data/gb_postcode_data.sql.gz
+    wget https://www.nominatim.org/data/us_postcode_data.sql.gz
 
 ## Choosing the Data to Import
 
@@ -189,25 +191,19 @@ entire US adds about 10GB to your database.
   1. Get preprocessed TIGER 2018 data and unpack it into the
      data directory in your Nominatim sources:
 
-```sh
-    cd Nominatim/data
-    wget https://nominatim.org/data/tiger2018-nominatim-preprocessed.tar.gz
-    tar xf tiger2018-nominatim-preprocessed.tar.gz
-```
+        cd Nominatim/data
+        wget https://nominatim.org/data/tiger2018-nominatim-preprocessed.tar.gz
+        tar xf tiger2018-nominatim-preprocessed.tar.gz
 
     `data-source/us-tiger/README.md` explains how the data got preprocessed.
 
   2. Import the data into your Nominatim database:
 
-```sh
-    ./utils/setup.php --import-tiger-data
-```
+        ./utils/setup.php --import-tiger-data
 
   3. Enable use of the Tiger data in your `settings/local.php` by adding:
 
-```
          @define('CONST_Use_US_Tiger_Data', true);
-```
 
   4. Apply the new settings: