Installation
============
-There are detailed installation instructions in the /docs directory.
-Here is a quick summary of the necessary steps.
+The latest stable release can be downloaded from http://nominatim.org.
+There you can also find [installation instructions for the release](http://nominatim.org/release-docs/latest/Installation).
+
+Detailed installation instructions for the development version can be
+found in the `/docs` directory, see [docs/Installation.md](docs/Installation.md).
+
+A quick summary of the necessary steps:
1. Compile Nominatim:
cmake ..
make
- For more detailed installation instructions see [docs/Installation.md](docs/Installation.md).
- There are also step-by-step instructions for
- [Ubuntu 16.04](docs/Install-on-Ubuntu-16.md) and
- [CentOS 7.2](docs/Install-on-Centos-7.md).
-
2. Get OSM data and import:
./build/utils/setup.php --osm-file <your planet file> --all
- Details can be found in [docs/Import_and_update.md](docs/Import-and-Update.md)
-
3. Point your webserver to the ./build/website directory.
-
License
=======
ELSE
NEW.rank_address := 0;
END IF;
+ ELSEIF NEW.class = 'leisure' and NEW.type in ('park') THEN
+ NEW.rank_search := 24;
+ NEW.rank_address := 0;
ELSEIF NEW.class = 'natural' and NEW.type in ('peak','volcano','mountain_range') THEN
NEW.rank_search := 18;
NEW.rank_address := 0;
}
if ($aResult['init-updates']) {
+ // sanity check that the replication URL is correct
+ $sBaseState = file_get_contents(CONST_Replication_Url.'/state.txt');
+ if ($sBaseState === false) {
+ echo "\nCannot find state.txt file at the configured replication URL.\n";
+ echo "Does the URL point to a directory containing OSM update data?\n\n";
+ fail("replication URL not reachable.");
+ }
$sSetup = CONST_InstallPath.'/utils/setup.php';
$iRet = -1;
passthru($sSetup.' --create-functions --enable-diff-updates', $iRet);
// get the appropriate state id
$aOutput = 0;
- exec(CONST_Pyosmium_Binary.' -D '.$sWindBack.' --server '.CONST_Replication_Url,
- $aOutput, $iRet);
- if ($iRet != 0) {
+ $sCmd = CONST_Pyosmium_Binary.' -D '.$sWindBack.' --server '.CONST_Replication_Url;
+ exec($sCmd, $aOutput, $iRet);
+ if ($iRet != 0 || $aOutput[0] == 'None') {
fail('Error running pyosmium tools');
}