]> git.openstreetmap.org Git - nominatim.git/commitdiff
use simpler recurse operator for overpass download
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 31 Oct 2020 20:33:48 +0000 (21:33 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 31 Oct 2020 20:44:28 +0000 (21:44 +0100)
Also fixes a typo in the OSM link.

utils/update.php

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;';
     }
 }