]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #2032 from lonvia/remove-ui
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 1 Nov 2020 14:12:12 +0000 (15:12 +0100)
committerGitHub <noreply@github.com>
Sun, 1 Nov 2020 14:12:12 +0000 (15:12 +0100)
Remove HTML output

docs/admin/Advanced-Installations.md
utils/update.php

index 7ff5619824674af87c74f9f5a036b286f61eb5ac..5b0275b32728ea445e102ddf3eb799f09a672143 100644 (file)
@@ -51,7 +51,8 @@ The file `import_multiple_regions.sh` needs to be edited as per your requirement
 !!! tip
     If your database already exists and you want to add more countries, replace the setting up part
     `${SETUPFILE} --osm-file ${UPDATEDIR}/tmp/combined.osm.pbf --all 2>&1`
-    with `${UPDATEFILE} --import-file ${UPDATEDIR}/tmp/combined.osm.pbf 2>&1`.
+    with `${UPDATEFILE} --import-file ${UPDATEDIR}/tmp/combined.osm.pbf --index --index-instances N 2>&1`
+    where N is the numbers of CPUs in your system.
 
 ### Setting up multiple regions
 
index f0b45b428cf4b866c624ea5717272337bc3e1b7a..7e90016c3c01018cae76afe02231f8976d2f3565 100644 (file)
@@ -241,15 +241,15 @@ if (isset($aResult['import-way']) && $aResult['import-way']) {
     if ($bUseOSMApi) {
         $sContentURL = 'https://www.openstreetmap.org/api/0.6/way/'.$aResult['import-way'].'/full';
     } else {
-        $sContentURL = 'https://overpass-api.de/api/interpreter?data=(way('.$aResult['import-way'].');node(w););out%20meta;';
+        $sContentURL = 'https://overpass-api.de/api/interpreter?data=(way('.$aResult['import-way'].');%3E;);out%20meta;';
     }
 }
 
 if (isset($aResult['import-relation']) && $aResult['import-relation']) {
     if ($bUseOSMApi) {
-        $sContentURLsModifyXMLstr = 'https://www.openstreetmap.org/api/0.6/relation/'.$aResult['import-relation'].'/full';
+        $sContentURL = 'https://www.openstreetmap.org/api/0.6/relation/'.$aResult['import-relation'].'/full';
     } else {
-        $sContentURL = 'https://overpass-api.de/api/interpreter?data=((rel('.$aResult['import-relation'].');way(r);node(w));node(r));out%20meta;';
+        $sContentURL = 'https://overpass-api.de/api/interpreter?data=(rel(id:'.$aResult['import-relation'].');%3E;);out%20meta;';
     }
 }