]> git.openstreetmap.org Git - nominatim.git/blob - lib-sql/postcode_tables.sql
don't even try heavily penalized searches
[nominatim.git] / lib-sql / postcode_tables.sql
1 -- SPDX-License-Identifier: GPL-2.0-only
2 --
3 -- This file is part of Nominatim. (https://nominatim.org)
4 --
5 -- Copyright (C) 2022 by the Nominatim developer community.
6 -- For a full list of authors see the git log.
7 DROP TABLE IF EXISTS gb_postcode;
8 CREATE TABLE gb_postcode (
9     id integer,
10     postcode character varying(9),
11     geometry geometry,
12     CONSTRAINT enforce_dims_geometry CHECK ((st_ndims(geometry) = 2)),
13     CONSTRAINT enforce_srid_geometry CHECK ((st_srid(geometry) = 4326))
14 );
15
16 DROP TABLE IF EXISTS us_postcode;
17 CREATE TABLE us_postcode (
18     postcode text,
19     x double precision,
20     y double precision
21 );