mod of admin0 geocoder to consolidate search function

This commit is contained in:
andrewxhill
2014-08-06 13:19:09 -04:00
parent 3d1de6cd46
commit 58d5c54f34
4 changed files with 18 additions and 27 deletions

View File

@@ -4,7 +4,7 @@
--- Function
CREATE OR REPLACE FUNCTION geocode_admin1_polygons(name text[])
CREATE OR REPLACE FUNCTION test_geocode_admin1_polygons(name text[])
RETURNS SETOF geocode_admin_v1 AS $$
DECLARE
ret geocode_admin_v1%rowtype;
@@ -38,7 +38,7 @@ Text array, country name
--- SELECT (geocode_admin1_polygons(Array['az', 'Texas'], 'Ecuador')).*
--- Function
CREATE OR REPLACE FUNCTION geocode_admin1_polygons(name text[], inputcountry text)
CREATE OR REPLACE FUNCTION test_geocode_admin1_polygons(name text[], inputcountry text)
RETURNS SETOF geocode_admin_v1 AS $$
DECLARE
ret geocode_admin_v1%rowtype;
@@ -75,7 +75,7 @@ Text array, country array
--- Function
CREATE OR REPLACE FUNCTION geocode_admin1_polygons(names text[], country text[])
CREATE OR REPLACE FUNCTION test_geocode_admin1_polygons(names text[], country text[])
RETURNS SETOF geocode_admin_country_v1 AS $$
DECLARE
ret geocode_admin_country_v1%rowtype;