X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/634684236c6118e4df3cd40dd57fbde941bd2b30..88eaa8430b8ceb1696af50c603561a451353ed2a:/docs/admin/Import-and-Update.md diff --git a/docs/admin/Import-and-Update.md b/docs/admin/Import-and-Update.md index 35306a4d..257e5ebc 100644 --- a/docs/admin/Import-and-Update.md +++ b/docs/admin/Import-and-Update.md @@ -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: