X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/558c42ec83a5a01e238af2fa4faa6a992af3f77a..4825a0bda3e2b5d6a9c153b7cd0b8da2959cbc81:/docs/library/Configuration.md?ds=inline diff --git a/docs/library/Configuration.md b/docs/library/Configuration.md index f673a27d..713d1c53 100644 --- a/docs/library/Configuration.md +++ b/docs/library/Configuration.md @@ -1,11 +1,13 @@ # Configuration When using Nominatim through the library, it can be configured in exactly -the same way as when running as a service. This means that you should have -created a [project directory](../admin/Import.md#creating-the-project-directory) -which contains all files belonging to the Noinatim instance. It can also contain -an `.env` file with configuration options. Setting configuration paramters -via environment variables works as well. +the same way as when running as a service. You may instantiate the library +against the [project directory](../admin/Import.md#creating-the-project-directory) +of your Nominatim installation. It contains all files belonging to the +Nominatim instance. This may include an `.env` file with configuration options. +Setting configuration parameters via environment variables works as well. +Alternatively to using the operating system's environment, a set of +configuration parameters may also be passed to the Nomiantim API object. Configuration options are resolved in the following order: @@ -20,7 +22,7 @@ configuration parameters, see the [Configuration page](../customize/Settings.md) ## `Configuration` class -::: nominatim.config.Configuration +::: nominatim_api.Configuration options: members: - get_bool