X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c6982e7700d9e8fd620a9f5b3e768fb03d915d57..4dfbf2517b7129ee458f672b1d3798c01a633575:/website/search.php diff --git a/website/search.php b/website/search.php index afce2ee2..fc03a58d 100755 --- a/website/search.php +++ b/website/search.php @@ -898,7 +898,7 @@ // More efficient - can make the range bigger $fRange = 0.05; - $sSQL = "select distinct l.place_id from place_classtype_".$aSearch['sClass']."_".$aSearch['sType']." as l"; + $sSQL = "select l.place_id from place_classtype_".$aSearch['sClass']."_".$aSearch['sType']." as l"; if ($sCountryCodesSQL) $sSQL .= " join placex as lp using (place_id)"; if ($sPlaceIDs) { @@ -926,7 +926,7 @@ else { if (isset($aSearch['fRadius']) && $aSearch['fRadius']) $fRange = $aSearch['fRadius']; - $sSQL = "select distinct l.place_id from placex as l,placex as f where "; + $sSQL = "select l.place_id from placex as l,placex as f where "; $sSQL .= "f.place_id in ( $sPlaceIDs) and ST_DWithin(l.geometry, st_centroid(f.geometry), $fRange) "; $sSQL .= "and l.class='".$aSearch['sClass']."' and l.type='".$aSearch['sType']."' "; if (sizeof($aExcludePlaceIDs))