]> git.openstreetmap.org Git - nominatim.git/blobdiff - settings/defaults.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / settings / defaults.php
index 4f8d58c5b66903f7857d6116c3e40ff991e15f9e..0b63a3bdce2332c0dc65f3a7c14ee5c8b67e9754 100644 (file)
@@ -11,17 +11,24 @@ if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true);
 @define('CONST_Database_Web_User', 'www-data');
 @define('CONST_Max_Word_Frequency', '50000');
 @define('CONST_Limit_Reindexing', true);
+// Restrict search languages.
+// Normally Nominatim will include all language variants of name:XX
+// in the search index. Set this to a comma separated list of language
+// codes, to restrict import to a subset of languages.
+// Currently only affects the import of country names and special phrases.
+@define('CONST_Languages', false);
+
 // Set to false to avoid importing extra postcodes for the US.
 @define('CONST_Use_Extra_US_Postcodes', true);
-// Set to true after importing Tiger house number data for the US.
-// Note: The tables must already exist or queries will throw errors.
-//       After changing this setting run ./utils/setup --create-functions
-//       again.
+/* Set to true after importing Tiger house number data for the US.
+   Note: The tables must already exist or queries will throw errors.
+         After changing this setting run ./utils/setup --create-functions
+         again. */
 @define('CONST_Use_US_Tiger_Data', false);
-// Set to true after importing other external house number data.
-// Note: the aux tables must already exist or queries will throw errors.
-//       After changing this setting run ./utils/setup --create-functions
-//       again.
+/* Set to true after importing other external house number data.
+   Note: the aux tables must already exist or queries will throw errors.
+        After changing this setting run ./utils/setup --create-functions
+        again. */
 @define('CONST_Use_Aux_Location_data', false);
 
 // Proxy settings
@@ -33,8 +40,9 @@ if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true);
 
 // Paths
 @define('CONST_Osm2pgsql_Binary', CONST_InstallPath.'/osm2pgsql/osm2pgsql');
-@define('CONST_Osmosis_Binary', '/usr/bin/osmosis');
+@define('CONST_Osmosis_Binary', '@OSMOSIS_PATH@');
 @define('CONST_Tiger_Data_Path', CONST_BasePath.'/data/tiger');
+@define('CONST_Wikipedia_Data_Path', CONST_BasePath.'/data');
 
 // osm2pgsql settings
 @define('CONST_Osm2pgsql_Flatnode_File', null);
@@ -89,7 +97,7 @@ if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true);
 
 // Maximum number of OSM ids that may be queried at once
 // for the places endpoint.
-@define('CONST_Places_Max_ID_count', 50); 
+@define('CONST_Places_Max_ID_count', 50);
 
 // Number of different geometry formats that may be queried in parallel.
 // Set to zero to disable polygon output.
@@ -101,4 +109,3 @@ if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true);
 @define('CONST_Log_DB', false);
 // Set to a file name to enable logging to a file.
 @define('CONST_Log_File', false);
-