X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/9e35e5c2b02887e361972ffbb20e65bbba0d02c7..e70f405abddfe5a8a7400424558071ebba769eda:/utils/update.php diff --git a/utils/update.php b/utils/update.php old mode 100755 new mode 100644 index 0e12bb86..24095ef4 --- a/utils/update.php +++ b/utils/update.php @@ -1,16 +1,50 @@ -#!@PHP_BIN@ -Cq true, + 'verbose' => $aResult['verbose'] + )); + $cSetup->connect(); $cSetup->createFunctions(); } @@ -269,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) {