mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 01:47:57 +00:00
add consistent SPDX copyright headers
This commit is contained in:
16
AUTHORS
16
AUTHORS
@@ -1,15 +1,15 @@
|
|||||||
Nominatim was written by:
|
Nominatim was written by:
|
||||||
|
|
||||||
Brian Quinion
|
* Brian Quinion
|
||||||
Sarah Hoffmann
|
* Sarah Hoffmann
|
||||||
Marc Tobias Metten
|
* Marc Tobias Metten
|
||||||
|
|
||||||
markigail
|
* markigail
|
||||||
gemo1011
|
* AntoJvlt
|
||||||
IrlJidel
|
* gemo1011
|
||||||
Frederik Ramm
|
* darkshredder
|
||||||
|
|
||||||
and many more.
|
and many more.
|
||||||
|
|
||||||
For a full list of contributors see
|
For a full list of contributors see the Git logs or visit
|
||||||
https://github.com/openstreetmap/Nominatim/graphs/contributors
|
https://github.com/openstreetmap/Nominatim/graphs/contributors
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim\ClassTypes;
|
namespace Nominatim\ClassTypes;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim\Token;
|
namespace Nominatim\Token;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim\Token;
|
namespace Nominatim\Token;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim\Token;
|
namespace Nominatim\Token;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim\Token;
|
namespace Nominatim\Token;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim\Token;
|
namespace Nominatim\Token;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim\Token;
|
namespace Nominatim\Token;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
@define('CONST_LibDir', dirname(dirname(__FILE__)));
|
@define('CONST_LibDir', dirname(dirname(__FILE__)));
|
||||||
// Script to extract structured city and street data
|
// Script to extract structured city and street data
|
||||||
// from a running nominatim instance as CSV data
|
// from a running nominatim instance as CSV data
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
@define('CONST_LibDir', dirname(dirname(__FILE__)));
|
@define('CONST_LibDir', dirname(dirname(__FILE__)));
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/init-cmd.php');
|
require_once(CONST_LibDir.'/init-cmd.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/Shell.php');
|
require_once(CONST_LibDir.'/Shell.php');
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require('Symfony/Component/Dotenv/autoload.php');
|
require('Symfony/Component/Dotenv/autoload.php');
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once('init.php');
|
require_once('init.php');
|
||||||
require_once('cmd.php');
|
require_once('cmd.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once('init.php');
|
require_once('init.php');
|
||||||
require_once('ParameterParser.php');
|
require_once('ParameterParser.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/lib.php');
|
require_once(CONST_LibDir.'/lib.php');
|
||||||
require_once(CONST_LibDir.'/DB.php');
|
require_once(CONST_LibDir.'/DB.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
function loadSettings($sProjectDir)
|
function loadSettings($sProjectDir)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
function logStart(&$oDB, $sType = '', $sQuery = '', $aLanguageList = array())
|
function logStart(&$oDB, $sType = '', $sQuery = '', $aLanguageList = array())
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
function formatOSMType($sType, $bIncludeExternal = true)
|
function formatOSMType($sType, $bIncludeExternal = true)
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
function getOsm2pgsqlBinary()
|
function getOsm2pgsqlBinary()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
// https://github.com/geocoders/geocodejson-spec/
|
// https://github.com/geocoders/geocodejson-spec/
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
$aFilteredPlaces = array();
|
$aFilteredPlaces = array();
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
$aFilteredPlaces = array();
|
$aFilteredPlaces = array();
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
header('content-type: text/xml; charset=UTF-8');
|
header('content-type: text/xml; charset=UTF-8');
|
||||||
|
|
||||||
echo '<';
|
echo '<';
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
$aPlaceDetails = array();
|
$aPlaceDetails = array();
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
$error = array(
|
$error = array(
|
||||||
'code' => $exception->getCode(),
|
'code' => $exception->getCode(),
|
||||||
'message' => $exception->getMessage()
|
'message' => $exception->getMessage()
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
$aOutput = array();
|
$aOutput = array();
|
||||||
$aOutput['licence'] = 'Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright';
|
$aOutput['licence'] = 'Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright';
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
$aFilteredPlaces = array();
|
$aFilteredPlaces = array();
|
||||||
foreach ($aSearchResults as $iResNum => $aPointDetails) {
|
foreach ($aSearchResults as $iResNum => $aPointDetails) {
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
$aFilteredPlaces = array();
|
$aFilteredPlaces = array();
|
||||||
foreach ($aSearchResults as $iResNum => $aPointDetails) {
|
foreach ($aSearchResults as $iResNum => $aPointDetails) {
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
$aFilteredPlaces = array();
|
$aFilteredPlaces = array();
|
||||||
foreach ($aSearchResults as $iResNum => $aPointDetails) {
|
foreach ($aSearchResults as $iResNum => $aPointDetails) {
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
header('content-type: text/xml; charset=UTF-8');
|
header('content-type: text/xml; charset=UTF-8');
|
||||||
|
|
||||||
echo '<';
|
echo '<';
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
namespace Nominatim;
|
namespace Nominatim;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/init-website.php');
|
require_once(CONST_LibDir.'/init-website.php');
|
||||||
require_once(CONST_LibDir.'/log.php');
|
require_once(CONST_LibDir.'/log.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/init-website.php');
|
require_once(CONST_LibDir.'/init-website.php');
|
||||||
require_once(CONST_LibDir.'/log.php');
|
require_once(CONST_LibDir.'/log.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/init-website.php');
|
require_once(CONST_LibDir.'/init-website.php');
|
||||||
require_once(CONST_LibDir.'/log.php');
|
require_once(CONST_LibDir.'/log.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/init-website.php');
|
require_once(CONST_LibDir.'/init-website.php');
|
||||||
require_once(CONST_LibDir.'/log.php');
|
require_once(CONST_LibDir.'/log.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/init-website.php');
|
require_once(CONST_LibDir.'/init-website.php');
|
||||||
require_once(CONST_LibDir.'/ParameterParser.php');
|
require_once(CONST_LibDir.'/ParameterParser.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/init-website.php');
|
require_once(CONST_LibDir.'/init-website.php');
|
||||||
require_once(CONST_LibDir.'/log.php');
|
require_once(CONST_LibDir.'/log.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/init-website.php');
|
require_once(CONST_LibDir.'/init-website.php');
|
||||||
require_once(CONST_LibDir.'/log.php');
|
require_once(CONST_LibDir.'/log.php');
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
|
|
||||||
require_once(CONST_LibDir.'/init-website.php');
|
require_once(CONST_LibDir.'/init-website.php');
|
||||||
require_once(CONST_LibDir.'/ParameterParser.php');
|
require_once(CONST_LibDir.'/ParameterParser.php');
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
{% include('functions/utils.sql') %}
|
{% include('functions/utils.sql') %}
|
||||||
{% include('functions/ranking.sql') %}
|
{% include('functions/ranking.sql') %}
|
||||||
{% include('functions/importance.sql') %}
|
{% include('functions/importance.sql') %}
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Functions for returning address information for a place.
|
-- Functions for returning address information for a place.
|
||||||
|
|
||||||
DROP TYPE IF EXISTS addressline CASCADE;
|
DROP TYPE IF EXISTS addressline CASCADE;
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Functions for interpreting wkipedia/wikidata tags and computing importance.
|
-- Functions for interpreting wkipedia/wikidata tags and computing importance.
|
||||||
|
|
||||||
DROP TYPE IF EXISTS wikipedia_article_match CASCADE;
|
DROP TYPE IF EXISTS wikipedia_article_match CASCADE;
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Functions for address interpolation objects in location_property_osmline.
|
-- Functions for address interpolation objects in location_property_osmline.
|
||||||
|
|
||||||
-- Splits the line at the given point and returns the two parts
|
-- Splits the line at the given point and returns the two parts
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
DROP TYPE IF EXISTS nearfeaturecentr CASCADE;
|
DROP TYPE IF EXISTS nearfeaturecentr CASCADE;
|
||||||
CREATE TYPE nearfeaturecentr AS (
|
CREATE TYPE nearfeaturecentr AS (
|
||||||
place_id BIGINT,
|
place_id BIGINT,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION place_insert()
|
CREATE OR REPLACE FUNCTION place_insert()
|
||||||
RETURNS TRIGGER
|
RETURNS TRIGGER
|
||||||
AS $$
|
AS $$
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Trigger functions for the placex table.
|
-- Trigger functions for the placex table.
|
||||||
|
|
||||||
-- Information returned by update preparation.
|
-- Information returned by update preparation.
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Trigger functions for location_postcode table.
|
-- Trigger functions for location_postcode table.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Functions related to search and address ranks
|
-- Functions related to search and address ranks
|
||||||
|
|
||||||
-- Return an approximate search radius according to the search rank.
|
-- Return an approximate search radius according to the search rank.
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Assorted helper functions for the triggers.
|
-- Assorted helper functions for the triggers.
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION geometry_sector(partition INTEGER, place geometry)
|
CREATE OR REPLACE FUNCTION geometry_sector(partition INTEGER, place geometry)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Indices used only during search and update.
|
-- Indices used only during search and update.
|
||||||
-- These indices are created only after the indexing process is done.
|
-- These indices are created only after the indexing process is done.
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
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,
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
DROP TABLE IF EXISTS gb_postcode;
|
DROP TABLE IF EXISTS gb_postcode;
|
||||||
CREATE TABLE gb_postcode (
|
CREATE TABLE gb_postcode (
|
||||||
id integer,
|
id integer,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- insert creates the location tables, creates location indexes if indexed == true
|
-- insert creates the location tables, creates location indexes if indexed == true
|
||||||
CREATE TRIGGER placex_before_insert BEFORE INSERT ON placex
|
CREATE TRIGGER placex_before_insert BEFORE INSERT ON placex
|
||||||
FOR EACH ROW EXECUTE PROCEDURE placex_insert();
|
FOR EACH ROW EXECUTE PROCEDURE placex_insert();
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
drop table if exists import_status;
|
drop table if exists import_status;
|
||||||
CREATE TABLE import_status (
|
CREATE TABLE import_status (
|
||||||
lastimportdate timestamp with time zone NOT NULL,
|
lastimportdate timestamp with time zone NOT NULL,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
--index only on parent_place_id
|
--index only on parent_place_id
|
||||||
CREATE INDEX IF NOT EXISTS idx_location_property_tiger_parent_place_id_imp
|
CREATE INDEX IF NOT EXISTS idx_location_property_tiger_parent_place_id_imp
|
||||||
ON location_property_tiger_import (parent_place_id)
|
ON location_property_tiger_import (parent_place_id)
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
DROP TABLE IF EXISTS location_property_tiger_import;
|
DROP TABLE IF EXISTS location_property_tiger_import;
|
||||||
CREATE TABLE location_property_tiger_import (linegeo GEOMETRY, place_id BIGINT, partition INTEGER, parent_place_id BIGINT, startnumber INTEGER, endnumber INTEGER, interpolationtype TEXT, postcode TEXT);
|
CREATE TABLE location_property_tiger_import (linegeo GEOMETRY, place_id BIGINT, partition INTEGER, parent_place_id BIGINT, startnumber INTEGER, endnumber INTEGER, interpolationtype TEXT, postcode TEXT);
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Get tokens used for searching the given place.
|
-- Get tokens used for searching the given place.
|
||||||
--
|
--
|
||||||
-- These are the tokens that will be saved in the search_name table.
|
-- These are the tokens that will be saved in the search_name table.
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
DROP TABLE IF EXISTS word;
|
DROP TABLE IF EXISTS word;
|
||||||
CREATE TABLE word (
|
CREATE TABLE word (
|
||||||
word_id INTEGER,
|
word_id INTEGER,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Get tokens used for searching the given place.
|
-- Get tokens used for searching the given place.
|
||||||
--
|
--
|
||||||
-- These are the tokens that will be saved in the search_name table.
|
-- These are the tokens that will be saved in the search_name table.
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
-- Required for details lookup.
|
-- Required for details lookup.
|
||||||
CREATE INDEX IF NOT EXISTS idx_word_word_id
|
CREATE INDEX IF NOT EXISTS idx_word_word_id
|
||||||
ON word USING BTREE (word_id) {{db.tablespace.search_index}};
|
ON word USING BTREE (word_id) {{db.tablespace.search_index}};
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-- SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
--
|
||||||
|
-- This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
--
|
||||||
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
-- For a full list of authors see the git log.
|
||||||
|
|
||||||
DROP TABLE IF EXISTS word;
|
DROP TABLE IF EXISTS word;
|
||||||
CREATE TABLE word (
|
CREATE TABLE word (
|
||||||
word_id INTEGER,
|
word_id INTEGER,
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
#include "fmgr.h"
|
#include "fmgr.h"
|
||||||
#include "mb/pg_wchar.h"
|
#include "mb/pg_wchar.h"
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
/**
|
||||||
|
* SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
*
|
||||||
|
* This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
* For a full list of authors see the git log.
|
||||||
|
*/
|
||||||
str_replace(buffer, &len, &changes, " national wildlife refuge area ", 31, " nwra ", 6, 0);
|
str_replace(buffer, &len, &changes, " national wildlife refuge area ", 31, " nwra ", 6, 0);
|
||||||
str_replace(buffer, &len, &changes, " national recreation area ", 26, " nra ", 5, 0);
|
str_replace(buffer, &len, &changes, " national recreation area ", 26, " nra ", 5, 0);
|
||||||
str_replace(buffer, &len, &changes, " air national guard base ", 25, " angb ", 6, 0);
|
str_replace(buffer, &len, &changes, " air national guard base ", 25, " angb ", 6, 0);
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Command-line interface to the Nominatim functions for import, update,
|
Command-line interface to the Nominatim functions for import, update,
|
||||||
database administration and querying.
|
database administration and querying.
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Subcommand definitions for the command-line tool.
|
Subcommand definitions for the command-line tool.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Implementation of the 'add-data' subcommand.
|
Implementation of the 'add-data' subcommand.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Implementation of the 'admin' subcommand.
|
Implementation of the 'admin' subcommand.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Subcommand definitions for API calls from the command line.
|
Subcommand definitions for API calls from the command line.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Provides custom functions over command-line arguments.
|
Provides custom functions over command-line arguments.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Implementation of the 'freeze' subcommand.
|
Implementation of the 'freeze' subcommand.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Implementation of the 'index' subcommand.
|
Implementation of the 'index' subcommand.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Implementation of 'refresh' subcommand.
|
Implementation of 'refresh' subcommand.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Implementation of the 'replication' sub-command.
|
Implementation of the 'replication' sub-command.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Implementation of the 'import' subcommand.
|
Implementation of the 'import' subcommand.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Implementation of the 'special-phrases' command.
|
Implementation of the 'special-phrases' command.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Nominatim configuration accessor.
|
Nominatim configuration accessor.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
#
|
#
|
||||||
# This file is part of Nominatim.
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
# Copyright (C) 2021 by the Nominatim developer community.
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
# For a full list of authors see the git log.
|
# For a full list of authors see the git log.
|
||||||
""" Database helper functions for the indexer.
|
""" Database helper functions for the indexer.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Specialised connection and cursor functions.
|
Specialised connection and cursor functions.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# This file is part of Nominatim. (https://nominatim.org)
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 by the Nominatim developer community.
|
||||||
|
# For a full list of authors see the git log.
|
||||||
"""
|
"""
|
||||||
Query and access functions for the in-database property table.
|
Query and access functions for the in-database property table.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user