mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 06:22:13 +03:00
include the type (not just class) in the dedupe
This commit is contained in:
parent
7a4d550c7a
commit
e891aa3041
@ -1519,10 +1519,10 @@
|
||||
$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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user