deployed geocode_postalcode_polygons

This commit is contained in:
andrewxhill 2014-08-21 15:20:17 -04:00
parent 875c3fa57f
commit a949e25dd6
2 changed files with 1 additions and 5 deletions

View File

@ -21,13 +21,11 @@ SELECT the_geom, 'GBR', postalcode FROM uk_postcodes;
INSERT INTO postal_code_polygons (the_geom,adm0_a3,postal_code)
SELECT the_geom, 'CAN', cfsauid FROM gfsa000a11a_e;
-- Insert Australia zip codes
INSERT INTO postal_code_polygons (the_geom,adm0_a3,postal_code)
SELECT the_geom, 'AUS', name FROM doc;
-- Insert USA zip codes
INSERT INTO postal_code_polygons (the_geom,adm0_a3,postal_code)

View File

@ -1,8 +1,6 @@
--SELECT (geocode_postalcode_polygons(Array['10013','G9H','03782'], Array['USA', 'Canada', 'US'])).*
CREATE OR REPLACE FUNCTION test_geocode_postalcode_polygons(code text[], inputcountries text[])
CREATE OR REPLACE FUNCTION geocode_postalcode_polygons(code text[], inputcountries text[])
RETURNS SETOF geocode_namedplace_country_v1 AS $$
DECLARE
ret geocode_namedplace_country_v1%rowtype;