-drop type if exists nearplace cascade;
-create type nearplace as (
- place_id BIGINT
-);
-
-drop type if exists nearfeature cascade;
-create type nearfeature as (
- place_id BIGINT,
- keywords int[],
- rank_address integer,
- rank_search integer,
- distance float,
- isguess boolean
-);
-
-drop type if exists nearfeaturecentr cascade;
-create type nearfeaturecentr as (
- place_id BIGINT,
- keywords int[],
- rank_address integer,
- rank_search integer,
- distance float,
- isguess boolean,
- centroid GEOMETRY
-);
-