X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/23848100b932bdc4d0426ceb6d80db832205c4e7..27ea1bb42db0356a81eb9fadb5515f9abf2bb130:/website/reverse.php?ds=inline diff --git a/website/reverse.php b/website/reverse.php index a1c39d9d..708aaf78 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -88,6 +88,7 @@ $sSQL .= ' and (name is not null or housenumber is not null)'; $sSQL .= ' and class not in (\'waterway\',\'railway\',\'tunnel\',\'bridge\')'; $sSQL .= ' and (ST_GeometryType(geometry) not in (\'ST_Polygon\',\'ST_MultiPolygon\') '; + $sSQL .= ' and indexed_status = 0 '; $sSQL .= ' OR ST_DWithin('.$sPointSQL.', centroid, '.$fSearchDiam.'))'; $sSQL .= ' ORDER BY ST_distance('.$sPointSQL.', geometry) ASC limit 1'; if (CONST_Debug) var_dump($sSQL);