]> git.openstreetmap.org Git - nominatim.git/commitdiff
include the type (not just class) in the dedupe
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 7 Feb 2013 18:41:09 +0000 (18:41 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 7 Feb 2013 18:41:17 +0000 (18:41 +0000)
website/search.php

index be74cc9b2d7061b9d695f8557d938edbbb17aad5..f9b58b1cf755b309dd3271cae8eb576a696e57ff 100755 (executable)
                        $bFirst = false;
                }
                if (!$bDeDupe || (!isset($aOSMIDDone[$aResult['osm_type'].$aResult['osm_id']])
-                       && !isset($aClassTypeNameDone[$aResult['osm_type'].$aResult['class'].$aResult['name']])))
+                       && !isset($aClassTypeNameDone[$aResult['osm_type'].$aResult['class'].$aResult['type'].$aResult['name']])))
                {
                        $aOSMIDDone[$aResult['osm_type'].$aResult['osm_id']] = true;
-                       $aClassTypeNameDone[$aResult['osm_type'].$aResult['class'].$aResult['name']] = true;
+                       $aClassTypeNameDone[$aResult['osm_type'].$aResult['class'].$aResult['type'].$aResult['name']] = true;
                        $aSearchResults[] = $aResult;
                }