X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3a41b0dfbf3860826911dbb0b36b546bc02ffe28..84b976f9063129728ca12a5537900bdbf97fafa1:/docs/Import_and_update.md diff --git a/docs/Import_and_update.md b/docs/Import_and_update.md index 2f40312a..15aec256 100644 --- a/docs/Import_and_update.md +++ b/docs/Import_and_update.md @@ -19,6 +19,8 @@ Add to your settings/local.php: @define('CONST_Osm2pgsql_Flatnode_File', '/path/to/flatnode.file'); +Replace the second part with a suitable path on your system and make sure +the directory exists. There should be at least 35GB of free space. Downloading additional data --------------------------- @@ -65,10 +67,8 @@ avoid swapping, never give more than 2/3 of RAM to osm2pgsql. Loading additional datasets --------------------------- -The following commands will create additional entries for countries and POI searches: +The following commands will create additional entries for POI searches: - ./utils/specialphrases.php --countries > specialphrases_countries.sql - psql -d nominatim -f specialphrases_countries.sql ./utils/specialphrases.php --wiki-import > specialphrases.sql psql -d nominatim -f specialphrases.sql @@ -102,8 +102,16 @@ instance by following these steps: ./utils/setup.php --import-tiger-data + 5. Enable use of the Tiger data in your `settings/local.php` by adding: + + @define('CONST_Use_US_Tiger_Data', true); + + 6. Apply the new settings: + + ./utils/setup.php --create-functions --enable-diff-updates --create-partition-functions + Be warned that the import can take a very long time, especially if you -import all of the US. +import all of the US. The entire US adds about 10GB to your database. Updates @@ -170,5 +178,5 @@ The following command will keep your database constantly up to date: If you have imported multiple country extracts and want to keep them up-to-date, have a look at the script in -(issue #60)[https://github.com/twain47/Nominatim/issues/60]. +[issue #60](https://github.com/twain47/Nominatim/issues/60).