From: Brian Quinion Date: Tue, 18 Jun 2013 12:09:30 +0000 (+0100) Subject: Allow linking of ways to points (by name) as well as for relation admin areas X-Git-Tag: v2.2.0~59 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/1fb5964b0e08b1d719d919a8c2c0545d8827a502?ds=inline;hp=-c Allow linking of ways to points (by name) as well as for relation admin areas --- 1fb5964b0e08b1d719d919a8c2c0545d8827a502 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