X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/002c94211724e5c47471ff2475b7226f3c87b353..7a11e17008efa632eac9fd65b8599814681cb03d:/lib/PlaceLookup.php diff --git a/lib/PlaceLookup.php b/lib/PlaceLookup.php index ed2f494d..e0016337 100644 --- a/lib/PlaceLookup.php +++ b/lib/PlaceLookup.php @@ -124,7 +124,7 @@ { $sTypeLabel = strtolower(isset($aTypeLabel['simplelabel'])?$aTypeLabel['simplelabel']:$aTypeLabel['label']); $sTypeLabel = str_replace(' ','_',$sTypeLabel); - if (!isset($aAddress[$sTypeLabel]) || (isset($aFallback[$sTypeLabel]) && $aFallback[$sTypeLabel])) + if (!isset($aAddress[$sTypeLabel]) || (isset($aFallback[$sTypeLabel]) && $aFallback[$sTypeLabel]) || $aLine['class'] == 'place') { $aAddress[$sTypeLabel] = $aLine['localname']?$aLine['localname']:$aLine['housenumber']; }