Use Point for geocoding results
This commit is contained in:
parent
a8140e53c3
commit
e2c0a63803
@ -6,7 +6,7 @@ CREATE TYPE cdb_dataservices_client.isoline AS (
|
|||||||
|
|
||||||
CREATE TYPE cdb_dataservices_client.geocoding AS (
|
CREATE TYPE cdb_dataservices_client.geocoding AS (
|
||||||
cartodb_id integer,
|
cartodb_id integer,
|
||||||
the_geom geometry(Multipolygon,4326),
|
the_geom geometry(Point,4326),
|
||||||
metadata jsonb
|
metadata jsonb
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ BEGIN
|
|||||||
temp_table_name := 'bulk_geocode_street_' || md5(random()::text);
|
temp_table_name := 'bulk_geocode_street_' || md5(random()::text);
|
||||||
|
|
||||||
EXECUTE format('CREATE TEMPORARY TABLE %s ' ||
|
EXECUTE format('CREATE TEMPORARY TABLE %s ' ||
|
||||||
'(cartodb_id integer, the_geom geometry(Multipolygon,4326), metadata jsonb)',
|
'(cartodb_id integer, the_geom geometry(Point,4326), metadata jsonb)',
|
||||||
temp_table_name);
|
temp_table_name);
|
||||||
|
|
||||||
select
|
select
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-- TODO: could cartodb_id be replaced by rowid, maybe needing extra care for offset?
|
-- TODO: could cartodb_id be replaced by rowid, maybe needing extra care for offset?
|
||||||
CREATE TYPE cdb_dataservices_server.geocoding AS (
|
CREATE TYPE cdb_dataservices_server.geocoding AS (
|
||||||
cartodb_id integer,
|
cartodb_id integer,
|
||||||
the_geom geometry(Multipolygon,4326),
|
the_geom geometry(Point,4326),
|
||||||
metadata jsonb
|
metadata jsonb
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user