]> git.openstreetmap.org Git - nominatim.git/blob - lib-sql/tables/entrance.sql
Merge pull request #3991 from lonvia/interpolation-on-addresses
[nominatim.git] / lib-sql / tables / entrance.sql
1 -- SPDX-License-Identifier: GPL-2.0-only
2 --
3 -- This file is part of Nominatim. (https://nominatim.org)
4 --
5 -- Copyright (C) 2026 by the Nominatim developer community.
6 -- For a full list of authors see the git log.
7
8 -- Table to store location of entrance nodes
9 DROP TABLE IF EXISTS placex_entrance;
10
11 CREATE TABLE placex_entrance (
12   place_id BIGINT NOT NULL,
13   osm_id BIGINT NOT NULL,
14   type TEXT NOT NULL,
15   location GEOMETRY(Point, 4326) NOT NULL,
16   extratags HSTORE
17   );
18
19 CREATE UNIQUE INDEX idx_placex_entrance_place_id_osm_id ON placex_entrance
20   USING BTREE (place_id, osm_id) {{db.tablespace.search_index}};