X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3afd12f977e8793f0f63a76e133d5e7ca11b0a3d..ec4e3c36af238ae3c31a2f5eb727fe2a22f6d054:/utils/update.php diff --git a/utils/update.php b/utils/update.php old mode 100755 new mode 100644 index 31f32f60..24095ef4 --- a/utils/update.php +++ b/utils/update.php @@ -1,10 +1,9 @@ -#!@PHP_BIN@ -Cq true, 'verbose' => $aResult['verbose'] )); + $cSetup->connect(); $cSetup->createFunctions(); } @@ -306,6 +307,12 @@ if ($aResult['index']) { runWithEnv($sCmd, $aProcEnv); } +if ($aResult['update-address-levels']) { + echo 'Updating address levels from '.CONST_Address_Level_Config.".\n"; + $oAlParser = new \Nominatim\Setup\AddressLevelParser(CONST_Address_Level_Config); + $oAlParser->createTable($oDB, 'address_levels'); +} + if ($aResult['import-osmosis'] || $aResult['import-osmosis-all']) { // if (strpos(CONST_Replication_Url, 'download.geofabrik.de') !== false && CONST_Replication_Update_Interval < 86400) {