deployed geocode_postalcode_polygons
This commit is contained in:
@@ -21,13 +21,11 @@ SELECT the_geom, 'GBR', postalcode FROM uk_postcodes;
|
|||||||
INSERT INTO postal_code_polygons (the_geom,adm0_a3,postal_code)
|
INSERT INTO postal_code_polygons (the_geom,adm0_a3,postal_code)
|
||||||
SELECT the_geom, 'CAN', cfsauid FROM gfsa000a11a_e;
|
SELECT the_geom, 'CAN', cfsauid FROM gfsa000a11a_e;
|
||||||
|
|
||||||
|
|
||||||
-- Insert Australia zip codes
|
-- Insert Australia zip codes
|
||||||
|
|
||||||
INSERT INTO postal_code_polygons (the_geom,adm0_a3,postal_code)
|
INSERT INTO postal_code_polygons (the_geom,adm0_a3,postal_code)
|
||||||
SELECT the_geom, 'AUS', name FROM doc;
|
SELECT the_geom, 'AUS', name FROM doc;
|
||||||
|
|
||||||
|
|
||||||
-- Insert USA zip codes
|
-- Insert USA zip codes
|
||||||
|
|
||||||
INSERT INTO postal_code_polygons (the_geom,adm0_a3,postal_code)
|
INSERT INTO postal_code_polygons (the_geom,adm0_a3,postal_code)
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
--SELECT (geocode_postalcode_polygons(Array['10013','G9H','03782'], Array['USA', 'Canada', 'US'])).*
|
--SELECT (geocode_postalcode_polygons(Array['10013','G9H','03782'], Array['USA', 'Canada', 'US'])).*
|
||||||
|
|
||||||
|
CREATE OR REPLACE FUNCTION geocode_postalcode_polygons(code text[], inputcountries text[])
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION test_geocode_postalcode_polygons(code text[], inputcountries text[])
|
|
||||||
RETURNS SETOF geocode_namedplace_country_v1 AS $$
|
RETURNS SETOF geocode_namedplace_country_v1 AS $$
|
||||||
DECLARE
|
DECLARE
|
||||||
ret geocode_namedplace_country_v1%rowtype;
|
ret geocode_namedplace_country_v1%rowtype;
|
||||||
|
|||||||
Reference in New Issue
Block a user