Permalink
Browse files

enable indexed_status check for all

  • Loading branch information...
1 parent 08eff3c commit 0687065748bac9a56fe36922fdce15e2010a50a5 @lonvia lonvia committed Dec 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ReverseGeocode.php
View
@@ -95,8 +95,8 @@ function lookup()
$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);

0 comments on commit 0687065

Please sign in to comment.