2 @define('CONST_BasePath', '@CMAKE_SOURCE_DIR@');
3 @define('CONST_InstallPath', '@CMAKE_BINARY_DIR@');
4 if (file_exists(getenv('NOMINATIM_SETTINGS'))) require_once(getenv('NOMINATIM_SETTINGS'));
5 if (file_exists(CONST_InstallPath.'/settings/local.php')) require_once(CONST_InstallPath.'/settings/local.php');
6 if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true);
9 @define('CONST_Debug', false);
10 @define('CONST_Database_DSN', 'pgsql://@/nominatim'); // <driver>://<username>:<password>@<host>:<port>/<database>
11 @define('CONST_Database_Web_User', 'www-data');
12 @define('CONST_Max_Word_Frequency', '50000');
13 @define('CONST_Limit_Reindexing', true);
14 // Restrict search languages.
15 // Normally Nominatim will include all language variants of name:XX
16 // in the search index. Set this to a comma separated list of language
17 // codes, to restrict import to a subset of languages.
18 // Currently only affects the import of country names and special phrases.
19 @define('CONST_Languages', false);
21 // Set to false to avoid importing extra postcodes for the US.
22 @define('CONST_Use_Extra_US_Postcodes', true);
23 /* Set to true after importing Tiger house number data for the US.
24 Note: The tables must already exist or queries will throw errors.
25 After changing this setting run ./utils/setup --create-functions
27 @define('CONST_Use_US_Tiger_Data', false);
28 /* Set to true after importing other external house number data.
29 Note: the aux tables must already exist or queries will throw errors.
30 After changing this setting run ./utils/setup --create-functions
32 @define('CONST_Use_Aux_Location_data', false);
35 @define('CONST_HTTP_Proxy', false);
36 @define('CONST_HTTP_Proxy_Host', 'proxy.mydomain.com');
37 @define('CONST_HTTP_Proxy_Port', '3128');
38 @define('CONST_HTTP_Proxy_Login', '');
39 @define('CONST_HTTP_Proxy_Password', '');
42 @define('CONST_Osm2pgsql_Binary', CONST_InstallPath.'/osm2pgsql/osm2pgsql');
43 @define('CONST_Osmosis_Binary', '/usr/bin/osmosis');
44 @define('CONST_Tiger_Data_Path', CONST_BasePath.'/data/tiger');
45 @define('CONST_Wikipedia_Data_Path', CONST_BasePath.'/data');
48 @define('CONST_Osm2pgsql_Flatnode_File', null);
50 // tablespace settings
51 // osm2pgsql caching tables (aka slim mode tables) - update only
52 @define('CONST_Tablespace_Osm2pgsql_Data', false);
53 @define('CONST_Tablespace_Osm2pgsql_Index', false);
54 // osm2pgsql output tables (aka main table) - update only
55 @define('CONST_Tablespace_Place_Data', false);
56 @define('CONST_Tablespace_Place_Index', false);
57 // address computation tables - update only
58 @define('CONST_Tablespace_Address_Data', false);
59 @define('CONST_Tablespace_Address_Index', false);
60 // search tables - needed for lookups
61 @define('CONST_Tablespace_Search_Data', false);
62 @define('CONST_Tablespace_Search_Index', false);
63 // additional data, e.g. TIGER data, type searches - needed for lookups
64 @define('CONST_Tablespace_Aux_Data', false);
65 @define('CONST_Tablespace_Aux_Index', false);
67 // Replication settings
68 @define('CONST_Replication_Url', 'http://planet.openstreetmap.org/replication/minute');
69 @define('CONST_Replication_MaxInterval', '3600');
70 @define('CONST_Replication_Update_Interval', '60'); // How often upstream publishes diffs
71 @define('CONST_Replication_Recheck_Interval', '60'); // How long to sleep if no update found yet
74 @define('CONST_NoAccessControl', true);
76 @define('CONST_Website_BaseURL', 'http://'.php_uname('n').'/');
77 // Language to assume when none is supplied with the query.
78 // When set to false, the local language (i.e. the name tag without suffix)
80 @define('CONST_Default_Language', false);
81 // Appearance of the map in the debug interface.
82 @define('CONST_Default_Lat', 20.0);
83 @define('CONST_Default_Lon', 0.0);
84 @define('CONST_Default_Zoom', 2);
85 @define('CONST_Map_Tile_URL', 'http://{s}.tile.osm.org/{z}/{x}/{y}.png');
86 @define('CONST_Map_Tile_Attribution', ''); // Set if tile source isn't osm.org
88 @define('CONST_Search_AreaPolygons', true);
90 @define('CONST_Search_BatchMode', false);
92 @define('CONST_Search_TryDroppedAddressTerms', false);
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 alloow reverse search.
96 @define('CONST_Search_ReversePlanForAll', true);
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);
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);
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);