2 # Default configuration settings for Nominatim
4 # Database connection string.
5 # Add host, port, user etc through additional semicolon-separated attributes.
6 # e.g. ;host=...;port=...;user=...;password=...
7 NOMINATIM_DATABASE_DSN="pgsql:dbname=nominatim"
10 # Nominatim sets up read-only access for this user during installation.
11 NOMINATIM_DATABASE_WEBUSER="www-data"
13 # Directory where to find the PostgreSQL server module.
14 # When a relative path is given, it will be searched relative to the project
16 NOMINATIM_DATABASE_MODULE_PATH="module"
18 #@define('CONST_Max_Word_Frequency', '50000');
19 #@define('CONST_Limit_Reindexing', true);
20 #// Restrict search languages.
21 #// Normally Nominatim will include all language variants of name:XX
22 #// in the search index. Set this to a comma separated list of language
23 #// codes, to restrict import to a subset of languages.
24 #// Currently only affects the import of country names and special phrases.
25 #@define('CONST_Languages', false);
26 #// Rules for normalizing terms for comparison before doing comparisons.
27 #// The default is to remove accents and punctuation and to lower-case the
28 #// term. Spaces are kept but collapsed to one standard space.
29 #@define('CONST_Term_Normalization_Rules', ":: NFD (); [[:Nonspacing Mark:] [:Cf:]] >; :: lower (); [[:Punctuation:][:Space:]]+ > ' '; :: NFC ();");
31 #/* Set to true after importing Tiger house number data for the US.
32 # Note: The tables must already exist or queries will throw errors.
33 # After changing this setting run ./utils/setup --create-functions
35 #@define('CONST_Use_US_Tiger_Data', false);
36 #/* Set to true after importing other external house number data.
37 # Note: the aux tables must already exist or queries will throw errors.
38 # After changing this setting run ./utils/setup --create-functions
40 #@define('CONST_Use_Aux_Location_data', false);
43 #@define('CONST_HTTP_Proxy', false);
44 #@define('CONST_HTTP_Proxy_Host', 'proxy.mydomain.com');
45 #@define('CONST_HTTP_Proxy_Port', '3128');
46 #@define('CONST_HTTP_Proxy_Login', '');
47 #@define('CONST_HTTP_Proxy_Password', '');
50 #@define('CONST_ExtraDataPath', CONST_BasePath.'/data');
51 #@define('CONST_Osm2pgsql_Binary', CONST_InstallPath.'/osm2pgsql/osm2pgsql');
52 #@define('CONST_Pyosmium_Binary', '@PYOSMIUM_PATH@');
53 #@define('CONST_Tiger_Data_Path', CONST_ExtraDataPath.'/tiger');
54 #@define('CONST_Wikipedia_Data_Path', CONST_ExtraDataPath);
55 #@define('CONST_Phrase_Config', CONST_BasePath.'/settings/phrase_settings.php');
56 #@define('CONST_Address_Level_Config', CONST_BasePath.'/settings/address-levels.json');
57 #@define('CONST_Import_Style', CONST_BasePath.'/settings/import-full.style');
59 #// osm2pgsql settings
60 #@define('CONST_Osm2pgsql_Flatnode_File', null);
62 #// tablespace settings
63 #// osm2pgsql caching tables (aka slim mode tables) - update only
64 #@define('CONST_Tablespace_Osm2pgsql_Data', false);
65 #@define('CONST_Tablespace_Osm2pgsql_Index', false);
66 #// osm2pgsql output tables (aka main table) - update only
67 #@define('CONST_Tablespace_Place_Data', false);
68 #@define('CONST_Tablespace_Place_Index', false);
69 #// address computation tables - update only
70 #@define('CONST_Tablespace_Address_Data', false);
71 #@define('CONST_Tablespace_Address_Index', false);
72 #// search tables - needed for lookups
73 #@define('CONST_Tablespace_Search_Data', false);
74 #@define('CONST_Tablespace_Search_Index', false);
75 #// additional data, e.g. TIGER data, type searches - needed for lookups
76 #@define('CONST_Tablespace_Aux_Data', false);
77 #@define('CONST_Tablespace_Aux_Index', false);
79 #//// Replication settings
81 #// Base URL of replication service
82 #@define('CONST_Replication_Url', 'https://planet.openstreetmap.org/replication/minute');
84 #// Maximum size in MB of data to download per batch
85 #@define('CONST_Replication_Max_Diff_size', '30');
86 #// How long until the service publishes the next diff
87 #// (relative to the age of data in the diff).
88 #@define('CONST_Replication_Update_Interval', '75');
89 #// How long to sleep when no update could be found
90 #@define('CONST_Replication_Recheck_Interval', '60');
92 #// If true, send CORS headers to allow access
93 #@define('CONST_NoAccessControl', true);
95 #// Set this to the /mapicon directory of your nominatim-ui to enable returning
96 #// icon URLs with the results.
97 #@define('CONST_MapIcon_URL', false);
98 #// Language to assume when none is supplied with the query.
99 #// When set to false, the local language (i.e. the name tag without suffix)
101 #@define('CONST_Default_Language', false);
103 #@define('CONST_Search_AreaPolygons', true);
105 #@define('CONST_Search_BatchMode', false);
107 #@define('CONST_Search_NameOnlySearchFrequencyThreshold', 500);
108 #// If set to true, then reverse order of queries will be tried by default.
109 #// When set to false only selected languages allow reverse search.
110 #@define('CONST_Search_ReversePlanForAll', true);
112 #// Maximum number of OSM ids that may be queried at once
113 #// for the places endpoint.
114 #@define('CONST_Places_Max_ID_count', 50);
116 #// Number of different geometry formats that may be queried in parallel.
117 #// Set to zero to disable polygon output.
118 #@define('CONST_PolygonOutput_MaximumTypes', 1);
121 #// Set to true to log into new_query_log table.
122 #// You should set up a cron job that regularly clears out this table.
123 #@define('CONST_Log_DB', false);
124 #// Set to a file name to enable logging to a file.
125 #@define('CONST_Log_File', false);