mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
remove unused nearfeature types
Also move the remaining nearfeaturecentr type close to the function that is using it.
This commit is contained in:
@@ -1,3 +1,15 @@
|
|||||||
|
DROP TYPE IF EXISTS nearfeaturecentr CASCADE;
|
||||||
|
CREATE TYPE nearfeaturecentr AS (
|
||||||
|
place_id BIGINT,
|
||||||
|
keywords int[],
|
||||||
|
rank_address smallint,
|
||||||
|
rank_search smallint,
|
||||||
|
distance float,
|
||||||
|
isguess boolean,
|
||||||
|
postcode TEXT,
|
||||||
|
centroid GEOMETRY
|
||||||
|
);
|
||||||
|
|
||||||
create or replace function getNearFeatures(in_partition INTEGER, feature GEOMETRY, maxrank INTEGER, isin_tokens INT[]) RETURNS setof nearfeaturecentr AS $$
|
create or replace function getNearFeatures(in_partition INTEGER, feature GEOMETRY, maxrank INTEGER, isin_tokens INT[]) RETURNS setof nearfeaturecentr AS $$
|
||||||
DECLARE
|
DECLARE
|
||||||
r nearfeaturecentr%rowtype;
|
r nearfeaturecentr%rowtype;
|
||||||
|
|||||||
@@ -1,30 +1,3 @@
|
|||||||
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 smallint,
|
|
||||||
rank_search smallint,
|
|
||||||
distance float,
|
|
||||||
isguess boolean
|
|
||||||
);
|
|
||||||
|
|
||||||
drop type if exists nearfeaturecentr cascade;
|
|
||||||
create type nearfeaturecentr as (
|
|
||||||
place_id BIGINT,
|
|
||||||
keywords int[],
|
|
||||||
rank_address smallint,
|
|
||||||
rank_search smallint,
|
|
||||||
distance float,
|
|
||||||
isguess boolean,
|
|
||||||
postcode TEXT,
|
|
||||||
centroid GEOMETRY
|
|
||||||
);
|
|
||||||
|
|
||||||
drop table IF EXISTS search_name_blank CASCADE;
|
drop table IF EXISTS search_name_blank CASCADE;
|
||||||
CREATE TABLE search_name_blank (
|
CREATE TABLE search_name_blank (
|
||||||
place_id BIGINT,
|
place_id BIGINT,
|
||||||
|
|||||||
Reference in New Issue
Block a user