X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8b6bb8f21356ce284c7a6ae10c0b60562e7cd482..ceeaf77f697976960b11619a821ef5f6430906ec:/website/reverse.php?ds=sidebyside diff --git a/website/reverse.php b/website/reverse.php index 253b84a5..bbad4a44 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -111,7 +111,7 @@ $sSQL .= ' WHERE ST_DWithin('.$sPointSQL.', geometry, '.$fSearchDiam.')'; $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\')'; + $sSQL .= ' and class not in (\'waterway\',\'railway\',\'tunnel\',\'bridge\')'; $sSQL .= ' and (ST_GeometryType(geometry) not in (\'ST_Polygon\',\'ST_MultiPolygon\') '; $sSQL .= ' OR ST_DWithin('.$sPointSQL.', ST_Centroid(geometry), '.$fSearchDiam.'))'; $sSQL .= ' ORDER BY ST_distance('.$sPointSQL.', geometry) ASC limit 1';