]> git.openstreetmap.org Git - nominatim.git/blob - settings/defaults.php
1f146a4baa21f9affc20f6deb80dd60672afc793
[nominatim.git] / settings / defaults.php
1 <?php
2 if (file_exists(getenv('NOMINATIM_SETTINGS'))) require_once(getenv('NOMINATIM_SETTINGS'));
3 if (file_exists(CONST_InstallDir.'/settings/local.php')) require_once(CONST_InstallDir.'/settings/local.php');
4
5 @define('CONST_Max_Word_Frequency', '50000');
6 @define('CONST_Limit_Reindexing', true);
7 // Restrict search languages.
8 // Normally Nominatim will include all language variants of name:XX
9 // in the search index. Set this to a comma separated list of language
10 // codes, to restrict import to a subset of languages.
11 // Currently only affects the import of country names and special phrases.
12 @define('CONST_Languages', false);
13 // Rules for normalizing terms for comparison before doing comparisons.
14 // The default is to remove accents and punctuation and to lower-case the
15 // term. Spaces are kept but collapsed to one standard space.
16 @define('CONST_Term_Normalization_Rules', ":: NFD (); [[:Nonspacing Mark:] [:Cf:]] >;  :: lower (); [[:Punctuation:][:Space:]]+ > ' '; :: NFC ();");
17
18 /* Set to true after importing Tiger house number data for the US.
19    Note: The tables must already exist or queries will throw errors.
20          After changing this setting run ./utils/setup --create-functions
21          again. */
22 @define('CONST_Use_US_Tiger_Data', false);
23 /* Set to true after importing other external house number data.
24    Note: the aux tables must already exist or queries will throw errors.
25         After changing this setting run ./utils/setup --create-functions
26         again. */
27 @define('CONST_Use_Aux_Location_data', false);
28
29 // Proxy settings
30 @define('CONST_HTTP_Proxy', false);
31 @define('CONST_HTTP_Proxy_Host', 'proxy.mydomain.com');
32 @define('CONST_HTTP_Proxy_Port', '3128');
33 @define('CONST_HTTP_Proxy_Login', '');
34 @define('CONST_HTTP_Proxy_Password', '');
35
36 // Paths
37 @define('CONST_Osm2pgsql_Binary', CONST_InstallDir.'/osm2pgsql/osm2pgsql');
38 @define('CONST_Pyosmium_Binary', '@PYOSMIUM_PATH@');
39 @define('CONST_Tiger_Data_Path', CONST_DataDir.'/data/tiger');
40 @define('CONST_Wikipedia_Data_Path', CONST_DataDir);
41 @define('CONST_Phrase_Config', CONST_DataDir.'/settings/phrase_settings.php');
42 @define('CONST_Address_Level_Config', CONST_DataDir.'/settings/address-levels.json');
43 @define('CONST_Import_Style', CONST_DataDir.'/settings/import-full.style');
44
45 // osm2pgsql settings
46 @define('CONST_Osm2pgsql_Flatnode_File', null);
47
48 // tablespace settings
49 // osm2pgsql caching tables (aka slim mode tables) - update only
50 @define('CONST_Tablespace_Osm2pgsql_Data', false);
51 @define('CONST_Tablespace_Osm2pgsql_Index', false);
52 // osm2pgsql output tables (aka main table) - update only
53 @define('CONST_Tablespace_Place_Data', false);
54 @define('CONST_Tablespace_Place_Index', false);
55 // address computation tables - update only
56 @define('CONST_Tablespace_Address_Data', false);
57 @define('CONST_Tablespace_Address_Index', false);
58 // search tables - needed for lookups
59 @define('CONST_Tablespace_Search_Data', false);
60 @define('CONST_Tablespace_Search_Index', false);
61 // additional data, e.g. TIGER data, type searches - needed for lookups
62 @define('CONST_Tablespace_Aux_Data', false);
63 @define('CONST_Tablespace_Aux_Index', false);
64
65 //// Replication settings
66
67 // Base URL of replication service
68 @define('CONST_Replication_Url', 'https://planet.openstreetmap.org/replication/minute');
69
70 // Maximum size in MB of data to download per batch
71 @define('CONST_Replication_Max_Diff_size', '30');
72 // How long until the service publishes the next diff
73 // (relative to the age of data in the diff).
74 @define('CONST_Replication_Update_Interval', '75');
75 // How long to sleep when no update could be found
76 @define('CONST_Replication_Recheck_Interval', '60');
77
78 // If true, send CORS headers to allow access
79 @define('CONST_NoAccessControl', true);
80
81 // Set this to the /mapicon directory of your nominatim-ui to enable returning
82 // icon URLs with the results.
83 @define('CONST_MapIcon_URL', false);
84 // Language to assume when none is supplied with the query.
85 // When set to false, the local language (i.e. the name tag without suffix)
86 // will be used.
87 @define('CONST_Default_Language', false);
88
89 @define('CONST_Search_AreaPolygons', true);
90
91 @define('CONST_Search_BatchMode', false);
92
93 @define('CONST_Search_NameOnlySearchFrequencyThreshold', 500);
94 // If set to true, then reverse order of queries will be tried by default.
95 // When set to false only selected languages allow reverse search.
96 @define('CONST_Search_ReversePlanForAll', true);
97
98 // Maximum number of OSM ids that may be queried at once
99 // for the places endpoint.
100 @define('CONST_Places_Max_ID_count', 50);
101
102 // Number of different geometry formats that may be queried in parallel.
103 // Set to zero to disable polygon output.
104 @define('CONST_PolygonOutput_MaximumTypes', 1);
105
106 // Log settings
107 // Set to true to log into new_query_log table.
108 // You should set up a cron job that regularly clears out this table.
109 @define('CONST_Log_DB', false);
110 // Set to a file name to enable logging to a file.
111 @define('CONST_Log_File', false);