]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/ReverseGeocode.php
enable indexed_status check for all
[nominatim.git] / lib / ReverseGeocode.php
index 8503e1eb5c3ad138bb920dcec4ae5add4581384b..cb8c0c6bcf84b7febe7b17a053b12ab1cfd9fe8f 100644 (file)
@@ -95,8 +95,8 @@
                                $sSQL .= ' and rank_search != 28 and rank_search >= '.$iMaxRank;
                                $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 .= ' and (ST_GeometryType(geometry) not in (\'ST_Polygon\',\'ST_MultiPolygon\') ';
                                $sSQL .= ' OR ST_DWithin('.$sPointSQL.', centroid, '.$fSearchDiam.'))';
                                $sSQL .= ' ORDER BY ST_distance('.$sPointSQL.', geometry) ASC limit 1';
                                if (CONST_Debug) var_dump($sSQL);