]> git.openstreetmap.org Git - nominatim.git/commitdiff
Allow linking of ways to points (by name) as well as for relation admin areas
authorBrian Quinion <brian.quinion@mapquest.com>
Tue, 18 Jun 2013 12:09:30 +0000 (13:09 +0100)
committerBrian Quinion <brian.quinion@mapquest.com>
Tue, 18 Jun 2013 12:09:30 +0000 (13:09 +0100)
sql/functions.sql

index 8593a3b1c9d3aaab051b8a6835ac860452b6d9fd..ab9658939aa4fa90cd2d7fed437d5e87d842a87c 100644 (file)
@@ -1676,6 +1676,11 @@ BEGIN
         END IF;
       END IF;
 
+    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
+
       -- 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