X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/346da9bc0d61ad1d418a95ec351e3d33cf5b152d..ea48e50c60e3d09030d95a005bd679985e708eca:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 268c7558..afcc02ef 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -788,7 +788,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']; }