2021-03-23 05:40:53 +03:00
|
|
|
.TH nominatim "1" Manual
|
|
|
|
.SH NAME
|
|
|
|
nominatim
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B nominatim
|
2024-08-07 17:38:56 +03:00
|
|
|
[-h] [--version] {import,freeze,replication,special-phrases,add-data,index,refresh,admin,export,convert,serve,search,reverse,lookup,details,status} ...
|
2021-03-23 05:40:53 +03:00
|
|
|
.SH DESCRIPTION
|
|
|
|
Command\-line tools for importing, updating, administrating and
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
querying the Nominatim database.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-version\fR
|
|
|
|
Print Nominatim version and exit
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.SS
|
|
|
|
\fBSub-commands\fR
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,import\/\fR
|
|
|
|
Create a new Nominatim database from an OSM file.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,freeze\/\fR
|
|
|
|
Make database read-only.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,replication\/\fR
|
|
|
|
Update the database using an online replication service.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,special-phrases\/\fR
|
2021-03-29 11:57:06 +03:00
|
|
|
Import special phrases.
|
2021-03-23 05:40:53 +03:00
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,add-data\/\fR
|
|
|
|
Add additional data from a file or an online source.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,index\/\fR
|
|
|
|
Reindex all new and modified data.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,refresh\/\fR
|
|
|
|
Recompute auxiliary data used by the indexing process.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,admin\/\fR
|
|
|
|
Analyse and maintain the database.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,export\/\fR
|
2024-08-07 17:38:56 +03:00
|
|
|
Export places as CSV file from the database.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,convert\/\fR
|
|
|
|
Convert an existing database into a different format. (EXPERIMENTAL)
|
2021-03-23 05:40:53 +03:00
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,serve\/\fR
|
|
|
|
Start a simple web server for serving the API.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,search\/\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Execute a search query.
|
2021-03-23 05:40:53 +03:00
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,reverse\/\fR
|
|
|
|
Execute API reverse query.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,lookup\/\fR
|
|
|
|
Execute API lookup query.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,details\/\fR
|
|
|
|
Execute API details query.
|
|
|
|
.TP
|
|
|
|
\fBnominatim\fR \fI\,status\/\fR
|
2024-08-07 17:38:56 +03:00
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.SH OPTIONS 'nominatim import'
|
|
|
|
usage: nominatim import [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
2024-08-07 17:38:56 +03:00
|
|
|
[--osm-file FILE]
|
|
|
|
[--continue {import-from-file,load-data,indexing,db-postprocess}]
|
2021-03-23 05:40:53 +03:00
|
|
|
[--osm2pgsql-cache SIZE] [--reverse-only]
|
2024-08-07 17:38:56 +03:00
|
|
|
[--no-partitions] [--no-updates] [--offline]
|
|
|
|
[--ignore-errors] [--index-noanalyse]
|
|
|
|
[--prepare-database]
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
Create a new Nominatim database from an OSM file.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
This sub\-command sets up a new Nominatim database from scratch starting
|
|
|
|
.br
|
|
|
|
with creating a new database in Postgresql. The user running this command
|
|
|
|
.br
|
|
|
|
needs superuser rights on the database.
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-osm\-file\fR FILE
|
2021-10-12 00:27:38 +03:00
|
|
|
OSM file to be imported (repeat for importing multiple files)
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
2024-08-07 17:38:56 +03:00
|
|
|
\fB\-\-continue\fR {import\-from\-file,load\-data,indexing,db\-postprocess}
|
2021-03-23 05:40:53 +03:00
|
|
|
Continue an import that was interrupted
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-osm2pgsql\-cache\fR SIZE
|
|
|
|
Size of cache to be used by osm2pgsql (in MB)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-reverse\-only\fR
|
|
|
|
Do not create tables and indexes for searching
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-no\-partitions\fR
|
2021-03-24 18:08:14 +03:00
|
|
|
Do not partition search indices (speeds up import of single country extracts)
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-no\-updates\fR
|
2021-03-24 18:08:14 +03:00
|
|
|
Do not keep tables that are only needed for updating the database later
|
2021-03-23 05:40:53 +03:00
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-offline\fR
|
|
|
|
Do not attempt to load any additional data from the internet
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-ignore\-errors\fR
|
|
|
|
Continue import even when errors in SQL are present
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-index\-noanalyse\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Do not perform analyse operations during index (expert only)
|
2021-03-23 05:40:53 +03:00
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-prepare\-database\fR
|
|
|
|
Create the database but do not import any data
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.SH OPTIONS 'nominatim freeze'
|
|
|
|
usage: nominatim freeze [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
|
|
|
|
|
|
|
Make database read\-only.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
About half of data in the Nominatim database is kept only to be able to
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
keep the data up\-to\-date with new changes made in OpenStreetMap. This
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
command drops all this data and only keeps the part needed for geocoding
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
itself.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
This command has the same effect as the `\-\-no\-updates` option for imports.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.SH OPTIONS 'nominatim replication'
|
|
|
|
usage: nominatim replication [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
|
|
|
[--init] [--no-update-functions]
|
2024-08-07 17:38:56 +03:00
|
|
|
[--check-for-updates] [--once] [--catch-up]
|
|
|
|
[--no-index] [--osm2pgsql-cache SIZE]
|
2021-03-23 05:40:53 +03:00
|
|
|
[--socket-timeout SOCKET_TIMEOUT]
|
|
|
|
|
|
|
|
Update the database using an online replication service.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
An OSM replication service is an online service that provides regular
|
|
|
|
.br
|
|
|
|
updates (OSM diff files) for the planet or update they provide. The OSMF
|
|
|
|
.br
|
|
|
|
provides the primary replication service for the full planet at
|
|
|
|
.br
|
|
|
|
https://planet.osm.org/replication/ but there are other providers of
|
|
|
|
.br
|
|
|
|
extracts of OSM data who provide such a service as well.
|
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
This sub\-command allows to set up such a replication service and download
|
|
|
|
.br
|
|
|
|
and import updates at regular intervals. You need to call '\-\-init' once to
|
|
|
|
.br
|
|
|
|
set up the process or whenever you change the replication configuration
|
|
|
|
.br
|
|
|
|
parameters. Without any arguments, the sub\-command will go into a loop and
|
|
|
|
.br
|
|
|
|
continuously apply updates as they become available. Giving `\-\-once` just
|
|
|
|
.br
|
|
|
|
downloads and imports the next batch of updates.
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-init\fR
|
|
|
|
Initialise the update process
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-no\-update\-functions\fR
|
2024-08-07 17:38:56 +03:00
|
|
|
Do not update the trigger function to support differential updates (EXPERT)
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-check\-for\-updates\fR
|
|
|
|
Check if new updates are available and exit
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-once\fR
|
2021-03-24 18:08:14 +03:00
|
|
|
Download and apply updates only once. When not set, updates are continuously applied
|
2021-03-23 05:40:53 +03:00
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-catch\-up\fR
|
|
|
|
Download and apply updates until no new data is available on the server
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-no\-index\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Do not index the new data. Only usable together with \-\-once
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-osm2pgsql\-cache\fR SIZE
|
|
|
|
Size of cache to be used by osm2pgsql (in MB)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-socket\-timeout\fR \fI\,SOCKET_TIMEOUT\/\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Set timeout for file downloads
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.SH OPTIONS 'nominatim special-phrases'
|
|
|
|
usage: nominatim special-phrases [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
2021-10-12 00:27:38 +03:00
|
|
|
[--import-from-wiki] [--import-from-csv FILE]
|
|
|
|
[--no-replace]
|
2021-03-23 05:40:53 +03:00
|
|
|
|
2021-03-29 11:57:06 +03:00
|
|
|
Import special phrases.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
Special phrases are search terms that narrow down the type of object
|
|
|
|
.br
|
|
|
|
that should be searched. For example, you might want to search for
|
|
|
|
.br
|
|
|
|
'Hotels in Barcelona'. The OSM wiki has a selection of special phrases
|
|
|
|
.br
|
|
|
|
in many languages, which can be imported with this command.
|
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
You can also provide your own phrases in a CSV file. The file needs to have
|
|
|
|
.br
|
|
|
|
the following five columns:
|
|
|
|
.br
|
|
|
|
* phrase \- the term expected for searching
|
|
|
|
.br
|
|
|
|
* class \- the OSM tag key of the object type
|
|
|
|
.br
|
|
|
|
* type \- the OSM tag value of the object type
|
|
|
|
.br
|
|
|
|
* operator \- the kind of search to be done (one of: in, near, name, \-)
|
|
|
|
.br
|
|
|
|
* plural \- whether the term is a plural or not (Y/N)
|
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
An example file can be found in the Nominatim sources at
|
|
|
|
.br
|
|
|
|
'test/testdb/full_en_phrases_test.csv'.
|
|
|
|
.br
|
2024-08-07 17:38:56 +03:00
|
|
|
|
|
|
|
.br
|
|
|
|
The import can be further configured to ignore specific key/value pairs.
|
|
|
|
.br
|
|
|
|
This is particularly useful when importing phrases from the wiki. The
|
|
|
|
.br
|
|
|
|
default configuration excludes some very common tags like building=yes.
|
|
|
|
.br
|
|
|
|
The configuration can be customized by putting a file `phrase\-settings.json`
|
|
|
|
.br
|
|
|
|
with custom rules into the project directory or by using the `\-\-config`
|
|
|
|
.br
|
|
|
|
option to point to another configuration file.
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
2021-03-29 11:57:06 +03:00
|
|
|
\fB\-\-import\-from\-wiki\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Import special phrases from the OSM wiki to the database
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-import\-from\-csv\fR FILE
|
|
|
|
Import special phrases from a CSV file
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-no\-replace\fR
|
|
|
|
Keep the old phrases and only add the new ones
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.SH OPTIONS 'nominatim add-data'
|
|
|
|
usage: nominatim add-data [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
|
|
|
(--file FILE | --diff FILE | --node ID | --way ID | --relation ID | --tiger-data DIR)
|
2021-10-12 00:27:38 +03:00
|
|
|
[--use-main-api] [--osm2pgsql-cache SIZE]
|
|
|
|
[--socket-timeout SOCKET_TIMEOUT]
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
Add additional data from a file or an online source.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
This command allows to add or update the search data in the database.
|
|
|
|
.br
|
|
|
|
The data can come either from an OSM file or single OSM objects can
|
|
|
|
.br
|
|
|
|
directly be downloaded from the OSM API. This function only loads the
|
|
|
|
.br
|
|
|
|
data into the database. Afterwards it still needs to be integrated
|
|
|
|
.br
|
|
|
|
in the search index. Use the `nominatim index` command for that.
|
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
The command can also be used to add external non\-OSM data to the
|
|
|
|
.br
|
|
|
|
database. At the moment the only supported format is TIGER housenumber
|
|
|
|
.br
|
|
|
|
data. See the online documentation at
|
|
|
|
.br
|
2024-08-07 17:38:56 +03:00
|
|
|
https://nominatim.org/release\-docs/latest/customize/Tiger/
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
for more information.
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-file\fR FILE
|
2021-10-12 00:27:38 +03:00
|
|
|
Import data from an OSM file or diff file
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-diff\fR FILE
|
2021-10-12 00:27:38 +03:00
|
|
|
Import data from an OSM diff file (deprecated: use \-\-file)
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-node\fR ID
|
|
|
|
Import a single node from the API
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-way\fR ID
|
|
|
|
Import a single way from the API
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-relation\fR ID
|
|
|
|
Import a single relation from the API
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-tiger\-data\fR DIR
|
2021-10-12 00:27:38 +03:00
|
|
|
Add housenumbers from the US TIGER census database
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-use\-main\-api\fR
|
|
|
|
Use OSM API instead of Overpass to download objects
|
|
|
|
|
2021-10-12 00:27:38 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-osm2pgsql\-cache\fR SIZE
|
|
|
|
Size of cache to be used by osm2pgsql (in MB)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-socket\-timeout\fR \fI\,SOCKET_TIMEOUT\/\fR
|
|
|
|
Set timeout for file downloads
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.SH OPTIONS 'nominatim index'
|
|
|
|
usage: nominatim index [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
|
|
|
[--boundaries-only] [--no-boundaries] [--minrank RANK]
|
|
|
|
[--maxrank RANK]
|
|
|
|
|
|
|
|
Reindex all new and modified data.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
Indexing is the process of computing the address and search terms for
|
|
|
|
.br
|
|
|
|
the places in the database. Every time data is added or changed, indexing
|
|
|
|
.br
|
|
|
|
needs to be run. Imports and replication updates automatically take care
|
|
|
|
.br
|
|
|
|
of indexing. For other cases, this function allows to run indexing manually.
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-boundaries\-only\fR
|
|
|
|
Index only administrative boundaries.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-no\-boundaries\fR
|
|
|
|
Index everything except administrative boundaries.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-minrank\fR RANK, \fB\-r\fR RANK
|
|
|
|
Minimum/starting rank
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-maxrank\fR RANK, \fB\-R\fR RANK
|
|
|
|
Maximum/finishing rank
|
|
|
|
|
|
|
|
.SH OPTIONS 'nominatim refresh'
|
|
|
|
usage: nominatim refresh [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
2024-08-07 17:38:56 +03:00
|
|
|
[--postcodes] [--word-tokens] [--word-counts]
|
|
|
|
[--address-levels] [--functions] [--wiki-data]
|
|
|
|
[--secondary-importance] [--importance] [--website]
|
|
|
|
[--data-object OBJECT] [--data-area OBJECT]
|
|
|
|
[--no-diff-updates] [--enable-debug-statements]
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
Recompute auxiliary data used by the indexing process.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
This sub\-commands updates various static data and functions in the database.
|
|
|
|
.br
|
|
|
|
It usually needs to be run after changing various aspects of the
|
|
|
|
.br
|
|
|
|
configuration. The configuration documentation will mention the exact
|
|
|
|
.br
|
|
|
|
command to use in such case.
|
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
Warning: the 'update' command must not be run in parallel with other update
|
|
|
|
.br
|
|
|
|
commands like 'replication' or 'add\-data'.
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-postcodes\fR
|
|
|
|
Update postcode centroid table
|
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-word\-tokens\fR
|
|
|
|
Clean up search terms
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-word\-counts\fR
|
|
|
|
Compute frequency of full\-word search terms
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-address\-levels\fR
|
|
|
|
Reimport address level configuration
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-functions\fR
|
|
|
|
Update the PL/pgSQL functions in the database
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-wiki\-data\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Update Wikipedia/data importance numbers
|
2021-03-23 05:40:53 +03:00
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-secondary\-importance\fR
|
|
|
|
Update secondary importance raster data
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-importance\fR
|
|
|
|
Recompute place importances (expensive!)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-website\fR
|
|
|
|
Refresh the directory that serves the scripts for the web API
|
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-data\-object\fR OBJECT
|
|
|
|
Mark the given OSM object as requiring an update (format: [NWR]<id>)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-data\-area\fR OBJECT
|
|
|
|
Mark the area around the given OSM object as requiring an update (format: [NWR]<id>)
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-no\-diff\-updates\fR
|
|
|
|
Do not enable code for propagating updates
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-enable\-debug\-statements\fR
|
|
|
|
Enable debug warning statements in functions
|
|
|
|
|
|
|
|
.SH OPTIONS 'nominatim admin'
|
|
|
|
usage: nominatim admin [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
2024-08-07 17:38:56 +03:00
|
|
|
(--warm | --check-database | --migrate | --analyse-indexing | --collect-os-info | --clean-deleted AGE)
|
2021-03-23 05:40:53 +03:00
|
|
|
[--search-only] [--reverse-only]
|
|
|
|
[--osm-id OSM_ID | --place-id PLACE_ID]
|
|
|
|
|
|
|
|
Analyse and maintain the database.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-warm\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Warm database caches for search and reverse queries
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-check\-database\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Check that the database is complete and operational
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-migrate\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Migrate the database to a new software version
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-analyse\-indexing\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Print performance analysis of the indexing process
|
2021-03-23 05:40:53 +03:00
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-collect\-os\-info\fR
|
|
|
|
Generate a report about the host system information
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-clean\-deleted\fR AGE
|
|
|
|
Clean up deleted relations
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-search\-only\fR
|
|
|
|
Only pre\-warm tables for search queries
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-reverse\-only\fR
|
|
|
|
Only pre\-warm tables for reverse queries
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-osm\-id\fR \fI\,OSM_ID\/\fR
|
|
|
|
Analyse indexing of the given OSM object
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-place\-id\fR \fI\,PLACE_ID\/\fR
|
|
|
|
Analyse indexing of the given Nominatim object
|
|
|
|
|
|
|
|
.SH OPTIONS 'nominatim export'
|
|
|
|
usage: nominatim export [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
2024-08-07 17:38:56 +03:00
|
|
|
[--output-type {country,state,county,city,suburb,street,path}]
|
|
|
|
[--output-format OUTPUT_FORMAT] [--language LANGUAGE]
|
2021-03-23 05:40:53 +03:00
|
|
|
[--restrict-to-country COUNTRY_CODE]
|
|
|
|
[--restrict-to-osm-node ID] [--restrict-to-osm-way ID]
|
|
|
|
[--restrict-to-osm-relation ID]
|
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
Export places as CSV file from the database.
|
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
2024-08-07 17:38:56 +03:00
|
|
|
\fB\-\-output\-type\fR {country,state,county,city,suburb,street,path}
|
2021-03-23 05:40:53 +03:00
|
|
|
Type of places to output (default: street)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-output\-format\fR \fI\,OUTPUT_FORMAT\/\fR
|
2024-08-07 17:38:56 +03:00
|
|
|
Semicolon\-separated list of address types (see \-\-output\-type). Additionally accepts:placeid,postcode
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-language\fR \fI\,LANGUAGE\/\fR
|
2021-03-24 18:08:14 +03:00
|
|
|
Preferred language for output (use local name, if omitted)
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-restrict\-to\-country\fR COUNTRY_CODE
|
|
|
|
Export only objects within country
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-restrict\-to\-osm\-node\fR ID
|
|
|
|
Export only children of this OSM node
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-restrict\-to\-osm\-way\fR ID
|
|
|
|
Export only children of this OSM way
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-restrict\-to\-osm\-relation\fR ID
|
|
|
|
Export only children of this OSM relation
|
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.SH OPTIONS 'nominatim convert'
|
|
|
|
usage: nominatim convert [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
|
|
|
[--format {sqlite}] --output OUTPUT [--with-reverse]
|
|
|
|
[--with-search] [--with-details]
|
|
|
|
|
|
|
|
Convert an existing database into a different format. (EXPERIMENTAL)
|
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
Dump a read\-only version of the database in a different format.
|
|
|
|
.br
|
|
|
|
At the moment only a SQLite database suitable for reverse lookup
|
|
|
|
.br
|
|
|
|
can be created.
|
|
|
|
.br
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-format\fR {sqlite}
|
|
|
|
Format of the output database (must be sqlite currently)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-output\fR \fI\,OUTPUT\/\fR, \fB\-o\fR \fI\,OUTPUT\/\fR
|
|
|
|
File to write the database to.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-with\-reverse\fR, \fB\-\-without\-reverse\fR
|
|
|
|
Enable/disable support for reverse and lookup API (default: enabled)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-with\-search\fR, \fB\-\-without\-search\fR
|
|
|
|
Enable/disable support for search API (default: disabled)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-with\-details\fR, \fB\-\-without\-details\fR
|
|
|
|
Enable/disable support for details API (default: enabled)
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.SH OPTIONS 'nominatim serve'
|
|
|
|
usage: nominatim serve [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
2024-08-07 17:38:56 +03:00
|
|
|
[--server SERVER] [--engine {php,falcon,starlette}]
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
Start a simple web server for serving the API.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2024-08-07 17:38:56 +03:00
|
|
|
This command starts a built\-in webserver to serve the website
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
from the current project directory. This webserver is only suitable
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
for testing and development. Do not use it in production setups!
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.br
|
|
|
|
There are different webservers available. The default 'php' engine
|
|
|
|
.br
|
|
|
|
runs the classic PHP frontend. The other engines are Python servers
|
|
|
|
.br
|
|
|
|
which run the new Python frontend code. This is highly experimental
|
|
|
|
.br
|
|
|
|
at the moment and may not include the full API.
|
|
|
|
.br
|
|
|
|
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
By the default, the webserver can be accessed at: http://127.0.0.1:8088
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-server\fR \fI\,SERVER\/\fR
|
|
|
|
The address the server will listen to.
|
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-engine\fR {php,falcon,starlette}
|
|
|
|
Webserver framework to run. (default: falcon)
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.SH OPTIONS 'nominatim search'
|
|
|
|
usage: nominatim search [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
2024-08-07 17:38:56 +03:00
|
|
|
[--query QUERY] [--amenity AMENITY] [--street STREET]
|
|
|
|
[--city CITY] [--county COUNTY] [--state STATE]
|
|
|
|
[--country COUNTRY] [--postalcode POSTALCODE]
|
|
|
|
[--format {xml,geojson,geocodejson,json,jsonv2,debug}]
|
2021-03-23 05:40:53 +03:00
|
|
|
[--addressdetails] [--extratags] [--namedetails]
|
|
|
|
[--lang LANGS]
|
|
|
|
[--polygon-output {geojson,kml,svg,text}]
|
|
|
|
[--polygon-threshold TOLERANCE] [--countrycodes CC,..]
|
|
|
|
[--exclude_place_ids ID,..] [--limit LIMIT]
|
|
|
|
[--viewbox X1,Y1,X2,Y2] [--bounded] [--no-dedupe]
|
|
|
|
|
2021-10-12 00:27:38 +03:00
|
|
|
Execute a search query.
|
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
This command works exactly the same as if calling the /search endpoint on
|
|
|
|
.br
|
|
|
|
the web API. See the online documentation for more details on the
|
|
|
|
.br
|
|
|
|
various parameters:
|
|
|
|
.br
|
|
|
|
https://nominatim.org/release\-docs/latest/api/Search/
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-query\fR \fI\,QUERY\/\fR
|
|
|
|
Free\-form query string
|
|
|
|
|
2024-08-07 17:38:56 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-amenity\fR \fI\,AMENITY\/\fR
|
|
|
|
Structured query: name and/or type of POI
|
|
|
|
|
2021-03-23 05:40:53 +03:00
|
|
|
.TP
|
|
|
|
\fB\-\-street\fR \fI\,STREET\/\fR
|
|
|
|
Structured query: housenumber and street
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-city\fR \fI\,CITY\/\fR
|
|
|
|
Structured query: city, town or village
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-county\fR \fI\,COUNTY\/\fR
|
|
|
|
Structured query: county
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-state\fR \fI\,STATE\/\fR
|
|
|
|
Structured query: state
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-country\fR \fI\,COUNTRY\/\fR
|
|
|
|
Structured query: country
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-postalcode\fR \fI\,POSTALCODE\/\fR
|
|
|
|
Structured query: postcode
|
|
|
|
|
|
|
|
.TP
|
2024-08-07 17:38:56 +03:00
|
|
|
\fB\-\-format\fR {xml,geojson,geocodejson,json,jsonv2,debug}
|
2021-03-23 05:40:53 +03:00
|
|
|
Format of result
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-addressdetails\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include a breakdown of the address into elements
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-extratags\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include additional information if available (e.g. wikipedia link, opening hours)
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-namedetails\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include a list of alternative names
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-lang\fR LANGS, \fB\-\-accept\-language\fR LANGS
|
|
|
|
Preferred language order for presenting search results
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-polygon\-output\fR {geojson,kml,svg,text}
|
2021-10-12 00:27:38 +03:00
|
|
|
Output geometry of results as a GeoJSON, KML, SVG or WKT
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-polygon\-threshold\fR TOLERANCE
|
2021-03-24 18:08:14 +03:00
|
|
|
Simplify output geometry.Parameter is difference tolerance in degrees.
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-countrycodes\fR CC,..
|
2021-10-12 00:27:38 +03:00
|
|
|
Limit search results to one or more countries
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-exclude_place_ids\fR ID,..
|
|
|
|
List of search object to be excluded
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-limit\fR \fI\,LIMIT\/\fR
|
|
|
|
Limit the number of returned results
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-viewbox\fR X1,Y1,X2,Y2
|
|
|
|
Preferred area to find search results
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-bounded\fR
|
|
|
|
Strictly restrict results to viewbox area
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-no\-dedupe\fR
|
|
|
|
Do not remove duplicates from the result list
|
|
|
|
|
|
|
|
.SH OPTIONS 'nominatim reverse'
|
|
|
|
usage: nominatim reverse [-h] [-q] [-v] [--project-dir DIR] [-j NUM] --lat LAT
|
2024-08-07 17:38:56 +03:00
|
|
|
--lon LON [--zoom ZOOM] [--layer LAYER]
|
|
|
|
[--format {xml,geojson,geocodejson,json,jsonv2,debug}]
|
2021-03-23 05:40:53 +03:00
|
|
|
[--addressdetails] [--extratags] [--namedetails]
|
|
|
|
[--lang LANGS]
|
|
|
|
[--polygon-output {geojson,kml,svg,text}]
|
|
|
|
[--polygon-threshold TOLERANCE]
|
|
|
|
|
|
|
|
Execute API reverse query.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
This command works exactly the same as if calling the /reverse endpoint on
|
|
|
|
.br
|
|
|
|
the web API. See the online documentation for more details on the
|
|
|
|
.br
|
|
|
|
various parameters:
|
|
|
|
.br
|
|
|
|
https://nominatim.org/release\-docs/latest/api/Reverse/
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-lat\fR \fI\,LAT\/\fR
|
|
|
|
Latitude of coordinate to look up (in WGS84)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-lon\fR \fI\,LON\/\fR
|
|
|
|
Longitude of coordinate to look up (in WGS84)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-zoom\fR \fI\,ZOOM\/\fR
|
|
|
|
Level of detail required for the address
|
|
|
|
|
|
|
|
.TP
|
2024-08-07 17:38:56 +03:00
|
|
|
\fB\-\-layer\fR LAYER
|
|
|
|
OSM id to lookup in format <NRW><id> (may be repeated)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-format\fR {xml,geojson,geocodejson,json,jsonv2,debug}
|
2021-03-23 05:40:53 +03:00
|
|
|
Format of result
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-addressdetails\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include a breakdown of the address into elements
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-extratags\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include additional information if available (e.g. wikipedia link, opening hours)
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-namedetails\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include a list of alternative names
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-lang\fR LANGS, \fB\-\-accept\-language\fR LANGS
|
|
|
|
Preferred language order for presenting search results
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-polygon\-output\fR {geojson,kml,svg,text}
|
2021-10-12 00:27:38 +03:00
|
|
|
Output geometry of results as a GeoJSON, KML, SVG or WKT
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-polygon\-threshold\fR TOLERANCE
|
2021-03-24 18:08:14 +03:00
|
|
|
Simplify output geometry.Parameter is difference tolerance in degrees.
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.SH OPTIONS 'nominatim lookup'
|
|
|
|
usage: nominatim lookup [-h] [-q] [-v] [--project-dir DIR] [-j NUM] --id OSMID
|
2024-08-07 17:38:56 +03:00
|
|
|
[--format {xml,geojson,geocodejson,json,jsonv2,debug}]
|
2021-03-23 05:40:53 +03:00
|
|
|
[--addressdetails] [--extratags] [--namedetails]
|
|
|
|
[--lang LANGS]
|
|
|
|
[--polygon-output {geojson,kml,svg,text}]
|
|
|
|
[--polygon-threshold TOLERANCE]
|
|
|
|
|
|
|
|
Execute API lookup query.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
This command works exactly the same as if calling the /lookup endpoint on
|
|
|
|
.br
|
|
|
|
the web API. See the online documentation for more details on the
|
|
|
|
.br
|
|
|
|
various parameters:
|
|
|
|
.br
|
|
|
|
https://nominatim.org/release\-docs/latest/api/Lookup/
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-id\fR OSMID
|
|
|
|
OSM id to lookup in format <NRW><id> (may be repeated)
|
|
|
|
|
|
|
|
.TP
|
2024-08-07 17:38:56 +03:00
|
|
|
\fB\-\-format\fR {xml,geojson,geocodejson,json,jsonv2,debug}
|
2021-03-23 05:40:53 +03:00
|
|
|
Format of result
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-addressdetails\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include a breakdown of the address into elements
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-extratags\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include additional information if available (e.g. wikipedia link, opening hours)
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-namedetails\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include a list of alternative names
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-lang\fR LANGS, \fB\-\-accept\-language\fR LANGS
|
|
|
|
Preferred language order for presenting search results
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-polygon\-output\fR {geojson,kml,svg,text}
|
2021-10-12 00:27:38 +03:00
|
|
|
Output geometry of results as a GeoJSON, KML, SVG or WKT
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-polygon\-threshold\fR TOLERANCE
|
2021-03-24 18:08:14 +03:00
|
|
|
Simplify output geometry.Parameter is difference tolerance in degrees.
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.SH OPTIONS 'nominatim details'
|
|
|
|
usage: nominatim details [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
|
|
|
(--node NODE | --way WAY | --relation RELATION | --place_id PLACE_ID)
|
|
|
|
[--class OBJECT_CLASS] [--addressdetails]
|
|
|
|
[--keywords] [--linkedplaces] [--hierarchy]
|
|
|
|
[--group_hierarchy] [--polygon_geojson]
|
|
|
|
[--lang LANGS]
|
|
|
|
|
|
|
|
Execute API details query.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
This command works exactly the same as if calling the /details endpoint on
|
|
|
|
.br
|
|
|
|
the web API. See the online documentation for more details on the
|
|
|
|
.br
|
|
|
|
various parameters:
|
|
|
|
.br
|
|
|
|
https://nominatim.org/release\-docs/latest/api/Details/
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-node\fR \fI\,NODE\/\fR, \fB\-n\fR \fI\,NODE\/\fR
|
|
|
|
Look up the OSM node with the given ID.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-way\fR \fI\,WAY\/\fR, \fB\-w\fR \fI\,WAY\/\fR
|
|
|
|
Look up the OSM way with the given ID.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-relation\fR \fI\,RELATION\/\fR, \fB\-r\fR \fI\,RELATION\/\fR
|
|
|
|
Look up the OSM relation with the given ID.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-place_id\fR \fI\,PLACE_ID\/\fR, \fB\-p\fR \fI\,PLACE_ID\/\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Database internal identifier of the OSM object to look up
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-class\fR \fI\,OBJECT_CLASS\/\fR
|
2021-03-24 18:08:14 +03:00
|
|
|
Class type to disambiguated multiple entries of the same object.
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-addressdetails\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include a breakdown of the address into elements
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-keywords\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include a list of name keywords and address keywords
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-linkedplaces\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include a details of places that are linked with this one
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-hierarchy\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include details of places lower in the address hierarchy
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-group_hierarchy\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Group the places by type
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-polygon_geojson\fR
|
2021-10-12 00:27:38 +03:00
|
|
|
Include geometry of result
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-lang\fR LANGS, \fB\-\-accept\-language\fR LANGS
|
|
|
|
Preferred language order for presenting search results
|
|
|
|
|
|
|
|
.SH OPTIONS 'nominatim status'
|
|
|
|
usage: nominatim status [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
|
|
|
|
[--format {text,json}]
|
|
|
|
|
|
|
|
Execute API status query.
|
2021-10-12 00:27:38 +03:00
|
|
|
.br
|
|
|
|
|
|
|
|
.br
|
|
|
|
This command works exactly the same as if calling the /status endpoint on
|
|
|
|
.br
|
|
|
|
the web API. See the online documentation for more details on the
|
|
|
|
.br
|
|
|
|
various parameters:
|
|
|
|
.br
|
|
|
|
https://nominatim.org/release\-docs/latest/api/Status/
|
|
|
|
.br
|
2021-03-23 05:40:53 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
Print only error messages
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
Increase verboseness of output
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-project\-dir\fR DIR
|
|
|
|
Base directory of the Nominatim installation (default:.)
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-j\fR NUM, \fB\-\-threads\fR NUM
|
|
|
|
Number of parallel threads to use
|
|
|
|
|
|
|
|
.TP
|
|
|
|
\fB\-\-format\fR {text,json}
|
|
|
|
Format of result
|
|
|
|
|
2021-10-12 00:27:38 +03:00
|
|
|
.SH AUTHORS
|
|
|
|
.B Nominatim
|
|
|
|
was written by the Nominatim developer community <info@nominatim.org>.
|
2021-03-23 05:40:53 +03:00
|
|
|
.SH DISTRIBUTION
|
2021-03-24 18:08:14 +03:00
|
|
|
The latest version of Nominatim may be downloaded from
|
|
|
|
.UR https://nominatim.org
|
2021-03-23 05:40:53 +03:00
|
|
|
.UE
|