mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-15 19:07:58 +00:00
Compare commits
8 Commits
v5.2.0
...
docs-4.4.x
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51f3d50591 | ||
|
|
a0a6cfdb52 | ||
|
|
2fc4a278e9 | ||
|
|
2c329a43ea | ||
|
|
14d81fd2d6 | ||
|
|
005f2bf94e | ||
|
|
7674084944 | ||
|
|
da424b3516 |
12
.github/workflows/ci-tests.yml
vendored
12
.github/workflows/ci-tests.yml
vendored
@@ -80,15 +80,15 @@ jobs:
|
|||||||
flavour: ${{ matrix.flavour }}
|
flavour: ${{ matrix.flavour }}
|
||||||
lua: ${{ matrix.lua }}
|
lua: ${{ matrix.lua }}
|
||||||
|
|
||||||
- name: Install test prerequsites (behave from apt)
|
- name: Install test prerequisites (behave from apt)
|
||||||
run: sudo apt-get install -y -qq python3-behave
|
run: sudo apt-get install -y -qq python3-behave
|
||||||
if: matrix.flavour == 'ubuntu-20'
|
if: matrix.flavour == 'ubuntu-20'
|
||||||
|
|
||||||
- name: Install test prerequsites (behave from pip)
|
- name: Install test prerequisites (behave from pip)
|
||||||
run: pip3 install behave==1.2.6
|
run: pip3 install behave==1.2.6
|
||||||
if: (matrix.flavour == 'oldstuff') || (matrix.flavour == 'ubuntu-22')
|
if: (matrix.flavour == 'oldstuff') || (matrix.flavour == 'ubuntu-22')
|
||||||
|
|
||||||
- name: Install test prerequsites (from apt for Ununtu 2x)
|
- name: Install test prerequisites (from apt for Ununtu 2x)
|
||||||
run: sudo apt-get install -y -qq python3-pytest python3-pytest-asyncio uvicorn
|
run: sudo apt-get install -y -qq python3-pytest python3-pytest-asyncio uvicorn
|
||||||
if: matrix.flavour != 'oldstuff'
|
if: matrix.flavour != 'oldstuff'
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ jobs:
|
|||||||
run: pip3 install -U pytest-asyncio==0.21.1
|
run: pip3 install -U pytest-asyncio==0.21.1
|
||||||
if: matrix.flavour == 'ubuntu-20'
|
if: matrix.flavour == 'ubuntu-20'
|
||||||
|
|
||||||
- name: Install test prerequsites (from pip for Ubuntu 18)
|
- name: Install test prerequisites (from pip for Ubuntu 18)
|
||||||
run: pip3 install pytest pytest-asyncio uvicorn
|
run: pip3 install pytest pytest-asyncio uvicorn
|
||||||
if: matrix.flavour == 'oldstuff'
|
if: matrix.flavour == 'oldstuff'
|
||||||
|
|
||||||
@@ -165,7 +165,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
cmake-args: -DBUILD_MODULE=on
|
cmake-args: -DBUILD_MODULE=on
|
||||||
|
|
||||||
- name: Install test prerequsites
|
- name: Install test prerequisites
|
||||||
run: sudo apt-get install -y -qq python3-behave
|
run: sudo apt-get install -y -qq python3-behave
|
||||||
|
|
||||||
- name: BDD tests (legacy tokenizer)
|
- name: BDD tests (legacy tokenizer)
|
||||||
@@ -212,7 +212,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
flavour: 'ubuntu-22'
|
flavour: 'ubuntu-22'
|
||||||
|
|
||||||
- name: Install test prerequsites
|
- name: Install test prerequisites
|
||||||
run: sudo apt-get install -y -qq python3-behave
|
run: sudo apt-get install -y -qq python3-behave
|
||||||
|
|
||||||
- name: BDD tests (php)
|
- name: BDD tests (php)
|
||||||
|
|||||||
@@ -14,15 +14,15 @@ to a single Nominatim setup: configuration, extra data, etc. Create a project
|
|||||||
directory apart from the Nominatim software and change into the directory:
|
directory apart from the Nominatim software and change into the directory:
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir ~/nominatim-planet
|
mkdir ~/nominatim-project
|
||||||
cd ~/nominatim-planet
|
cd ~/nominatim-project
|
||||||
```
|
```
|
||||||
|
|
||||||
In the following, we refer to the project directory as `$PROJECT_DIR`. To be
|
In the following, we refer to the project directory as `$PROJECT_DIR`. To be
|
||||||
able to copy&paste instructions, you can export the appropriate variable:
|
able to copy&paste instructions, you can export the appropriate variable:
|
||||||
|
|
||||||
```
|
```
|
||||||
export PROJECT_DIR=~/nominatim-planet
|
export PROJECT_DIR=~/nominatim-project
|
||||||
```
|
```
|
||||||
|
|
||||||
The Nominatim tool assumes per default that the current working directory is
|
The Nominatim tool assumes per default that the current working directory is
|
||||||
@@ -153,7 +153,7 @@ if you plan to use the installation only for exports to a
|
|||||||
[photon](https://photon.komoot.io/) database, then you can set up a database
|
[photon](https://photon.komoot.io/) database, then you can set up a database
|
||||||
without search indexes. Add `--reverse-only` to your setup command above.
|
without search indexes. Add `--reverse-only` to your setup command above.
|
||||||
|
|
||||||
This saves about 5% of disk space.
|
This saves about 5% of disk space, import time won't be significant faster.
|
||||||
|
|
||||||
### Filtering Imported Data
|
### Filtering Imported Data
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@ to load the OSM data into the PostgreSQL database. This step is very demanding
|
|||||||
in terms of RAM usage. osm2pgsql and PostgreSQL are running in parallel at
|
in terms of RAM usage. osm2pgsql and PostgreSQL are running in parallel at
|
||||||
this point. PostgreSQL blocks at least the part of RAM that has been configured
|
this point. PostgreSQL blocks at least the part of RAM that has been configured
|
||||||
with the `shared_buffers` parameter during
|
with the `shared_buffers` parameter during
|
||||||
[PostgreSQL tuning](Installation.md#postgresql-tuning)
|
[PostgreSQL tuning](Installation.md#tuning-the-postgresql-database)
|
||||||
and needs some memory on top of that. osm2pgsql needs at least 2GB of RAM for
|
and needs some memory on top of that. osm2pgsql needs at least 2GB of RAM for
|
||||||
its internal data structures, potentially more when it has to process very large
|
its internal data structures, potentially more when it has to process very large
|
||||||
relations. In addition it needs to maintain a cache for node locations. The size
|
relations. In addition it needs to maintain a cache for node locations. The size
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ as the ["Accept-Language" HTTP header](https://developer.mozilla.org/en-US/docs/
|
|||||||
results when using Nominatim in the browser versus in a command-line tool
|
results when using Nominatim in the browser versus in a command-line tool
|
||||||
like wget or curl. The command-line tools
|
like wget or curl. The command-line tools
|
||||||
usually don't send any Accept-Language header, prompting Nominatim
|
usually don't send any Accept-Language header, prompting Nominatim
|
||||||
to show results in the local language. Browsers on the contratry always
|
to show results in the local language. Browsers on the contrary always
|
||||||
send the currently chosen browser language.
|
send the currently chosen browser language.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ as the ["Accept-Language" HTTP header](https://developer.mozilla.org/en-US/docs/
|
|||||||
results when using Nominatim in the browser versus in a command-line tool
|
results when using Nominatim in the browser versus in a command-line tool
|
||||||
like wget or curl. The command-line tools
|
like wget or curl. The command-line tools
|
||||||
usually don't send any Accept-Language header, prompting Nominatim
|
usually don't send any Accept-Language header, prompting Nominatim
|
||||||
to show results in the local language. Browsers on the contratry always
|
to show results in the local language. Browsers on the contrary always
|
||||||
send the currently chosen browser language.
|
send the currently chosen browser language.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ as the ["Accept-Language" HTTP header](https://developer.mozilla.org/en-US/docs/
|
|||||||
results when using Nominatim in the browser versus in a command-line tool
|
results when using Nominatim in the browser versus in a command-line tool
|
||||||
like wget or curl. The command-line tools
|
like wget or curl. The command-line tools
|
||||||
usually don't send any Accept-Language header, prompting Nominatim
|
usually don't send any Accept-Language header, prompting Nominatim
|
||||||
to show results in the local language. Browsers on the contratry always
|
to show results in the local language. Browsers on the contrary always
|
||||||
send the currently chosen browser language.
|
send the currently chosen browser language.
|
||||||
|
|
||||||
### Result restriction
|
### Result restriction
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ NOMINATIM_DATABASE_MODULE_PATH=<path to directory where nominatim.so resides>
|
|||||||
```
|
```
|
||||||
|
|
||||||
This is in particular useful when the database runs on a different server.
|
This is in particular useful when the database runs on a different server.
|
||||||
See [Advanced installations](../admin/Advanced-Installations.md#importing-nominatim-to-an-external-postgresql-database) for details.
|
See [Advanced installations](../admin/Advanced-Installations.md#using-an-external-postgresql-database) for details.
|
||||||
|
|
||||||
There are no other configuration options for the legacy tokenizer. All
|
There are no other configuration options for the legacy tokenizer. All
|
||||||
normalization functions are hard-coded.
|
normalization functions are hard-coded.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
site_name: Nominatim Manual
|
site_name: Nominatim 4.4.1 Manual
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
features:
|
features:
|
||||||
@@ -68,7 +68,7 @@ markdown_extensions:
|
|||||||
alternate_style: true
|
alternate_style: true
|
||||||
- def_list
|
- def_list
|
||||||
- toc:
|
- toc:
|
||||||
permalink:
|
permalink: 🔗
|
||||||
extra_css: [extra.css, styles.css]
|
extra_css: [extra.css, styles.css]
|
||||||
plugins:
|
plugins:
|
||||||
- search
|
- search
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export DEBIAN_FRONTEND=noninteractive #DOCS:
|
|||||||
postgresql-contrib-12 postgresql-12-postgis-3-scripts \
|
postgresql-contrib-12 postgresql-12-postgis-3-scripts \
|
||||||
libicu-dev python3-dotenv \
|
libicu-dev python3-dotenv \
|
||||||
python3-psycopg2 python3-psutil python3-jinja2 python3-pip \
|
python3-psycopg2 python3-psutil python3-jinja2 python3-pip \
|
||||||
python3-icu python3-datrie python3-yaml git
|
python3-icu python3-datrie python3-yaml
|
||||||
|
|
||||||
# Some of the Python packages that come with Ubuntu 20.04 are too old, so
|
# Some of the Python packages that come with Ubuntu 20.04 are too old, so
|
||||||
# install the latest version from pip:
|
# install the latest version from pip:
|
||||||
@@ -109,25 +109,18 @@ fi #DOCS:
|
|||||||
#
|
#
|
||||||
if [ "x$1" == "xyes" ]; then #DOCS: :::sh
|
if [ "x$1" == "xyes" ]; then #DOCS: :::sh
|
||||||
cd $USERHOME
|
cd $USERHOME
|
||||||
git clone --recursive https://github.com/openstreetmap/Nominatim.git
|
wget https://nominatim.org/release/Nominatim-4.4.1.tar.bz2
|
||||||
cd Nominatim
|
tar xf Nominatim-4.4.1.tar.bz2
|
||||||
else #DOCS:
|
else #DOCS:
|
||||||
cd $USERHOME/Nominatim #DOCS:
|
cd $USERHOME/Nominatim #DOCS:
|
||||||
fi #DOCS:
|
fi #DOCS:
|
||||||
|
|
||||||
# When installing the latest source from github, you also need to
|
|
||||||
# download the country grid:
|
|
||||||
|
|
||||||
if [ ! -f data/country_osm_grid.sql.gz ]; then #DOCS: :::sh
|
|
||||||
wget -O data/country_osm_grid.sql.gz https://nominatim.org/data/country_grid.sql.gz
|
|
||||||
fi #DOCS:
|
|
||||||
|
|
||||||
# The code must be built in a separate directory. Create this directory,
|
# The code must be built in a separate directory. Create this directory,
|
||||||
# then configure and build Nominatim in there:
|
# then configure and build Nominatim in there:
|
||||||
|
|
||||||
mkdir $USERHOME/build
|
mkdir $USERHOME/build
|
||||||
cd $USERHOME/build
|
cd $USERHOME/build
|
||||||
cmake $USERHOME/Nominatim
|
cmake $USERHOME/Nominatim-4.4.1
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export DEBIAN_FRONTEND=noninteractive #DOCS:
|
|||||||
libicu-dev python3-dotenv \
|
libicu-dev python3-dotenv \
|
||||||
python3-psycopg2 python3-psutil python3-jinja2 \
|
python3-psycopg2 python3-psutil python3-jinja2 \
|
||||||
python3-sqlalchemy python3-asyncpg \
|
python3-sqlalchemy python3-asyncpg \
|
||||||
python3-icu python3-datrie python3-yaml git
|
python3-icu python3-datrie python3-yaml
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -105,8 +105,8 @@ fi #DOCS:
|
|||||||
#
|
#
|
||||||
if [ "x$1" == "xyes" ]; then #DOCS: :::sh
|
if [ "x$1" == "xyes" ]; then #DOCS: :::sh
|
||||||
cd $USERHOME
|
cd $USERHOME
|
||||||
git clone --recursive https://github.com/openstreetmap/Nominatim.git
|
wget https://nominatim.org/release/Nominatim-4.4.1.tar.bz2
|
||||||
cd Nominatim
|
tar xf Nominatim-4.4.1.tar.bz2
|
||||||
else #DOCS:
|
else #DOCS:
|
||||||
cd $USERHOME/Nominatim #DOCS:
|
cd $USERHOME/Nominatim #DOCS:
|
||||||
fi #DOCS:
|
fi #DOCS:
|
||||||
@@ -123,7 +123,7 @@ fi #DOCS:
|
|||||||
|
|
||||||
mkdir $USERHOME/build
|
mkdir $USERHOME/build
|
||||||
cd $USERHOME/build
|
cd $USERHOME/build
|
||||||
cmake $USERHOME/Nominatim
|
cmake $USERHOME/Nominatim-4.4.1
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user