]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/PlaceLookup.php
output linked place into address details
[nominatim.git] / lib / PlaceLookup.php
index fce4970158a9395a6c22301fcae70d6ece185398..3531413fbcab40fb3bda5665fb3f1a4d6c5f21bc 100644 (file)
@@ -215,7 +215,7 @@ class PlaceLookup
                 'ST_Collect(centroid)',
                 'min(CASE WHEN placex.rank_search < 28 THEN placex.place_id ELSE placex.parent_place_id END)'
             );
-            $sSQL .= "    (extratags->'place') AS extra_place ";
+            $sSQL .= "    COALESCE(extratags->'place', extratags->'linked_place') AS extra_place ";
             $sSQL .= ' FROM placex';
             $sSQL .= " WHERE place_id in ($sPlaceIDs) ";
             $sSQL .= '   AND (';