only address features can be linked with placex

This commit is contained in:
Sarah Hoffmann
2015-03-23 22:04:43 +01:00
parent 753227ae25
commit 86b4df1e81
4 changed files with 239 additions and 167 deletions

View File

@@ -1734,7 +1734,7 @@ BEGIN
END IF;
-- Name searches can be done for ways as well as relations
IF NEW.osm_type in ('W','R') AND NEW.rank_search < 26 THEN
IF NEW.osm_type in ('W','R') AND NEW.rank_search < 26 AND NEW.rank_address > 0 THEN
-- not found one yet? how about doing a name search
IF NEW.centroid IS NULL AND (NEW.name->'name') is not null and make_standard_name(NEW.name->'name') != '' THEN