X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/224836ce9af04c440b70f501c7a4ed72e869985c..f1cbca788531e9eefe5fbbadd7ac0d218f6aa076:/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']; }