From 1fb5964b0e08b1d719d919a8c2c0545d8827a502 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Tue, 18 Jun 2013 13:09:30 +0100 Subject: [PATCH] Allow linking of ways to points (by name) as well as for relation admin areas --- sql/functions.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sql/functions.sql b/sql/functions.sql index 8593a3b1..ab965893 100644 --- a/sql/functions.sql +++ b/sql/functions.sql @@ -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 -- 2.39.5