X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/dd10c867dbe74f134e995a56b59de0b72e4cd644..d586b95ff11a45ab6223e83e1b0540f1db87b325:/docs/admin/Update.md diff --git a/docs/admin/Update.md b/docs/admin/Update.md index b4692321..98f5244a 100644 --- a/docs/admin/Update.md +++ b/docs/admin/Update.md @@ -4,9 +4,9 @@ There are many different ways to update your Nominatim database. The following section describes how to keep it up-to-date with Pyosmium. For a list of other methods see the output of `./utils/update.php --help`. -!!! warning +!!! important If you have configured a flatnode file for the import, then you - need to keep this flatnode file around for updates as well. + need to keep this flatnode file around for updates. #### Installing the newest version of Pyosmium @@ -19,9 +19,9 @@ pip3 install --user osmium Nominatim needs a tool called `pyosmium-get-changes` which comes with Pyosmium. You need to tell Nominatim where to find it. Add the -following line to your `settings/local.php`: +following line to your `.env`: - @define('CONST_Pyosmium_Binary', '/home/user/.local/bin/pyosmium-get-changes'); + NOMINATIM_PYOSMIUM_BINARY=/home/user/.local/bin/pyosmium-get-changes The path above is fine if you used the `--user` parameter with pip. Replace `user` with your user name. @@ -32,15 +32,15 @@ Next the update needs to be initialised. By default Nominatim is configured to update using the global minutely diffs. If you want a different update source you will need to add some settings -to `settings/local.php`. For example, to use the daily country extracts +to `.env`. For example, to use the daily country extracts diffs for Ireland from Geofabrik add the following: - // base URL of the replication service - @define('CONST_Replication_Url', 'https://download.geofabrik.de/europe/ireland-and-northern-ireland-updates'); - // How often upstream publishes diffs - @define('CONST_Replication_Update_Interval', '86400'); - // How long to sleep if no update found yet - @define('CONST_Replication_Recheck_Interval', '900'); + # base URL of the replication service + NOMINATIM_REPLICATION_URL="https://download.geofabrik.de/europe/ireland-and-northern-ireland-updates" + # How often upstream publishes diffs + NOMINATIM_REPLICATION_UPDATE_INTERVAL=86400 + # How long to sleep if no update found yet + NOMINATIM_REPLICATION_RECHECK_INTERVAL=900 To set up the update process now run the following command: