NOMINATIM(1)
π NAME π
This is the nominatim page from the Generated Python Manual, bestie β the manual name is literally nominatim (a.k.a. NOMINATIM(1) if youβre being formal π
).
πΈ SYNOPSIS πΈ
nominatim [-h] [--version] {import,freeze,replication,special-phrases,add-data,index,refresh,admin,export,convert,serve,search,reverse,lookup,details,status} ...
β¨ DESCRIPTION β¨
Nominatimβs command-line tools do the whole lifecycle, no cap: importing, updating, administrating, and querying the Nominatim database.
Also, the page says sys.args will be used.
And for Nominatim configuration: when itβs None, the os.environ is inherited.
π OPTIONS π
--versionβ prints the Nominatim version and exits. Iconic, simple, done.
π AVAILABLE COMMANDS π
nominatim importβ creates a new Nominatim database from an OSM file.nominatim freezeβ makes the database read-only.nominatim replicationβ updates the database using an online replication service.nominatim special-phrasesβ imports special phrases.nominatim add-dataβ adds additional data from a file or an online source.nominatim indexβ reindexes all new and modified data.nominatim refreshβ recomputes auxiliary data used by the indexing process.nominatim adminβ analyses and maintains the database.nominatim exportβ exports places as a CSV file from the database.nominatim convertβ converts an existing database into a different format. (EXPERIMENTAL)nominatim serveβ starts a simple web server for serving the API.nominatim searchβ executes a search query.nominatim reverseβ executes an API reverse query.nominatim lookupβ executes an API lookup query.nominatim detailsβ executes an API details query.nominatim statusβ the page lists this command but doesnβt give it a description here.
π COMMAND 'nominatim import' π
usage: nominatim import [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
[--osm-file FILE]
[--continue
{import-from-file,load-data,indexing,db-postprocess}]
[--osm2pgsql-cache SIZE] [--reverse-only]
[--no-partitions] [--no-updates] [--offline]
[--ignore-errors] [--index-noanalyse]
[--prepare-database]
Creates a new Nominatim database from an OSM file.
This sub-command sets up a new Nominatim database from scratch, starting with creating a new database in Postgresql. The user running this command needs superuser rights on the database. Yes, superuser β donβt forget that part, bestie π.
DEFAULT ARGUMENTS 'nominatim import'
-q,--quietβ print only error messages.-v,--verboseβ increase verboseness of output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use.
REQUIRED ARGUMENTS 'nominatim import'
--osm-file FILEβ OSM file to be imported (repeat for importing multiple files).--continue {import-from-file,load-data,indexing,db-postprocess}β continue an import that was interrupted.
OPTIONAL ARGUMENTS 'nominatim import'
--osm2pgsql-cache SIZEβ size of cache to be used by osm2pgsql (in MB).--reverse-onlyβ do not create tables and indexes for searching.--no-partitionsβ do not partition search indices (speeds up import of single country extracts).--no-updatesβ do not keep tables that are only needed for updating the database later.--offlineβ do not attempt to load any additional data from the internet.
EXPERT OPTIONS 'nominatim import'
--ignore-errorsβ continue import even when errors in SQL are present.--index-noanalyseβ do not perform analyse operations during index (expert only).--prepare-databaseβ create the database but do not import any data.
π§ COMMAND 'nominatim freeze' π§
usage: nominatim freeze [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
Makes the database read-only.
About half of data in the Nominatim database is kept only to be able to keep the data up-to-date with new changes made in OpenStreetMap. This command drops all this data and only keeps the part needed for geocoding itself.
This command has the same effect as the --no-updates option for imports.
DEFAULT ARGUMENTS 'nominatim freeze'
-q,--quietβ print only error messages.-v,--verboseβ increase verboseness of output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use.
π¦ COMMAND 'nominatim replication' π¦
usage: nominatim replication [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
[--init] [--no-update-functions]
[--check-for-updates] [--once] [--catch-up]
[--no-index] [--osm2pgsql-cache SIZE]
[--socket-timeout SOCKET_TIMEOUT]
Updates the database using an online replication service.
An OSM replication service is an online service that provides regular updates (OSM diff files) for the planet or update they provide. The OSMF provides the primary replication service for the full planet at https://planet.osm.org/replication/ but there are other providers of extracts of OSM data who provide such a service as well.
This sub-command lets you set up such a replication service and download and import updates at regular intervals. You need to call --init once to set up the process or whenever you change the replication configuration parameters. Without any arguments, the sub-command will go into a loop and continuously apply updates as they become available. Giving --once just downloads and imports the next batch of updates. Loop mode activated, bestie. π
DEFAULT ARGUMENTS 'nominatim replication'
-q,--quietβ print only error messages.-v,--verboseβ increase verboseness of output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use.
ARGUMENTS FOR INITIALISATION 'nominatim replication'
--initβ initialise the update process.--no-update-functionsβ do not update the trigger function to support differential updates (EXPERT).
ARGUMENTS FOR UPDATES 'nominatim replication'
--check-for-updatesβ check if new updates are available and exit.--onceβ download and apply updates only once. When not set, updates are continuously applied.--catch-upβ download and apply updates until no new data is available on the server.--no-indexβ do not index the new data. Only usable together with--once.--osm2pgsql-cache SIZEβ size of cache to be used by osm2pgsql (in MB).
DOWNLOAD PARAMETERS 'nominatim replication'
--socket-timeout SOCKET_TIMEOUTβ set timeout for file downloads.
π COMMAND 'nominatim special-phrases' π
usage: nominatim special-phrases [-h] [-q] [-v] [--project-dir DIR] [-j
NUM]
[--import-from-wiki] [--import-from-csv
FILE]
[--no-replace] [--min MIN]
Imports special phrases.
Special phrases are search terms that narrow down the type of object that should be searched. The pageβs example says you might want to search for in many languages β yes, that sentence is missing a word in the original, bestie, Iβm not inventing one β and this command imports those phrases.
You can also provide your own phrases in a CSV file. The file needs to have the following five columns:
phraseβ the term expected for searching.classβ the OSM tag key of the object type.typeβ the OSM tag value of the object type.operatorβ the kind of search to be done (one of:in,near,name,-).pluralβ whether the term is a plural or not (Y/N).
An example file can be found in the Nominatim sources at β and the original sentence stops right there, so no made-up URL from me π.
The import can be further configured to ignore specific key/value pairs. This is particularly useful when importing phrases from the wiki. The default configuration excludes some very common tags like building=yes. The configuration can be customized by putting a file phrase-settings.json with custom rules into the project directory or by using the --config option to point to another configuration file.
DEFAULT ARGUMENTS 'nominatim special-phrases'
-q,--quietβ print only error messages.-v,--verboseβ increase verboseness of output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use.
INPUT ARGUMENTS 'nominatim special-phrases'
--import-from-wikiβ import special phrases from the OSM wiki to the database.--import-from-csv FILEβ import special phrases from a CSV file.--no-replaceβ keep the old phrases and only add the new ones.--min MINβ restrict special phrases by minimum occurance (yes, βoccuranceβ is spelled like that in the page, bestie).
π COMMAND '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)
[--use-main-api]
[--osm2pgsql-cache SIZE]
[--socket-timeout SOCKET_TIMEOUT]
Heads up: the usage line also shows --use-main-api and --socket-timeout SOCKET_TIMEOUT; this part of the page doesnβt give them their own description bullets.
Adds additional data from a file or an online source.
This command lets you add or update the search data in the database. The data can come either from an OSM file or single OSM objects can directly be downloaded from the OSM API. This function only loads the data into the database. Afterwards it still needs to be integrated in the search index. Use the nominatim index command for that. Donβt skip the index step, bestie β thatβs the whole slay. β¨
The command can also be used to add external non-OSM data to the database. At the moment the only supported format is TIGER housenumber data. See the online documentation at https://nominatim.org/release-docs/latest/customize/Tiger/ for more information.
DEFAULT ARGUMENTS 'nominatim add-data'
-q,--quietβ print only error messages.-v,--verboseβ increase verboseness of output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use.
SOURCE 'nominatim add-data'
--file FILEβ import data from an OSM file or diff file.--diff FILEβ import data from an OSM diff file (deprecated: use--file).--node IDβ import a single node from the API.--way IDβ import a single way from the API.--relation IDβ import a single relation from the API.--tiger-data DIRβ add housenumbers from the US TIGER census database.
π EXTRA ARGUMENTS 'nominatim add-data' π
okay bestie, these are the extra little knobs you can twist for add-data π
--use-main-apiβ grabs objects using the OSM API instead of Overpass, no cap.--osm2pgsql-cache SIZEβ how big the cache is thatosm2pgsqlgets to use, in MB β¨--socket-timeout SOCKET_TIMEOUTβ sets the timeout for downloading files π«Ά
π₯ COMMAND 'nominatim index' π₯
the shape is literally this:
usage: nominatim index [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
[--boundaries-only] [--no-boundaries] [--minrank
RANK]
[--maxrank RANK]
so index is the "reindex all new and modified data" queen π
indexing is the whole process of computing the address and search terms for the places chilling in your database. every time data gets added or changed, you gotta run indexing. imports and replication updates handle that automatically for you, but for other situations this command lets you run indexing manually. slay.
π DEFAULT ARGUMENTS 'nominatim index' π
-q,--quietβ only prints error messages, very demure.-v,--verboseβ turns up the verboseness of the output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use β‘
π¦ FILTER ARGUMENTS 'nominatim index' π¦
--boundaries-onlyβ indexes only administrative boundaries.--no-boundariesβ indexes everything except administrative boundaries.--minrank RANK,-r RANKβ minimum/starting rank.--maxrank RANK,-R RANKβ maximum/finishing rank.
π COMMAND 'nominatim refresh' π
usage vibes:
usage: nominatim refresh [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
[--postcodes] [--word-tokens] [--word-counts]
[--address-levels] [--functions] [--wiki-data]
[--secondary-importance] [--importance]
[--ro-access]
[--website] [--data-object OBJECT]
[--data-area OBJECT] [--no-diff-updates]
[--enable-debug-statements] [--force-reimport]
this one recomputes auxiliary data used by the indexing process β¨
it updates various static data and functions in the database. usually you run it after changing stuff in the configuration. the configuration docs will tell you the exact command to use when that happens, iykyk.
β οΈ Warning: the'update'command must not be run in parallel with other update commands like'replication'or'add-data'. fr fr, don't do it.
π DEFAULT ARGUMENTS 'nominatim refresh' π
-q,--quietβ print only error messages.-v,--verboseβ increase verboseness of output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use.
π DATA ARGUMENTS 'nominatim refresh' π
--postcodesβ update the postcode centroid table.--word-tokensβ clean up search terms.--word-countsβ compute frequency of full-word search terms.--address-levelsβ reimport address level configuration.--functionsβ update the PL/pgSQL functions in the database.--wiki-dataβ update Wikipedia/data importance numbers.--secondary-importanceβ update secondary importance raster data.--importanceβ recompute place importances (expensive!). π--ro-accessβ grant read-only access to the web user for all tables.--websiteβ DEPRECATED. This function has no function anymore and will be removed in a future version. not me reading that twice π--data-object OBJECTβ mark the given OSM object as requiring an update (format:[NWR]<id>).--data-area OBJECTβ mark the area around the given OSM object as requiring an update (format:[NWR]<id>).
π§ ARGUMENTS FOR FUNCTION REFRESH 'nominatim refresh' π§
--no-diff-updatesβ do not enable code for propagating updates.--enable-debug-statementsβ enable debug warning statements in functions.
πΈ ARGUMENTS FOR POSTCODE REFRESH 'nominatim refresh' πΈ
--force-reimportβ recompute the postcodes from scratch instead of updating.
π COMMAND 'nominatim admin' π
usage, bestie:
usage: nominatim admin [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
(--warm |
--check-database | --migrate | --analyse-indexing
|
--collect-os-info | --clean-deleted AGE)
[--search-only] [--reverse-only] [--osm-id OSM_ID
|
--place-id PLACE_ID]
this one analyses and maintains the database. main character energy for database upkeep π«Ά
π DEFAULT ARGUMENTS 'nominatim admin' π
-q,--quietβ print only error messages.-v,--verboseβ increase verboseness of output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use.
β ADMIN TASKS 'nominatim admin' β
--warmβ warm database caches for search and reverse queries.--check-databaseβ check that the database is complete and operational.--migrateβ migrate the database to a new software version.--analyse-indexingβ print performance analysis of the indexing process.--collect-os-infoβ generate a report about the host system information.--clean-deleted AGEβ clean up deleted relations.
π¦ ARGUMENTS FOR CACHE WARMING 'nominatim admin' π¦
--search-onlyβ only pre-warm tables for search queries.--reverse-onlyβ only pre-warm tables for reverse queries.
π οΈ ARGUMENTS FOR INDEX ANAYSIS 'nominatim admin' π οΈ
(yes, the heading says ANAYSIS, we keep the typo, it's iconic)
--osm-id OSM_IDβ analyse indexing of the given OSM object.--place-id PLACE_IDβ analyse indexing of the given Nominatim object.
π COMMAND 'nominatim export' π
usage block:
usage: nominatim export [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
[--output-type
{country,state,county,city,suburb,street,path}]
[--output-format OUTPUT_FORMAT] [--language
LANGUAGE]
[--restrict-to-country COUNTRY_CODE]
[--restrict-to-osm-node ID]
[--restrict-to-osm-way ID]
[--restrict-to-osm-relation ID]
this exports places as a CSV file from the database. cute little data dump moment β¨
π DEFAULT ARGUMENTS 'nominatim export' π
-q,--quietβ print only error messages.-v,--verboseβ increase verboseness of output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use.
π OUTPUT ARGUMENTS 'nominatim export' π
--output-type {country,state,county,city,suburb,street,path}β type of places to output (default:street).--output-format OUTPUT_FORMATβ semicolon-separated list of address types (see--output-type). additionally acceptsplaceid,postcode.--language LANGUAGEβ preferred language for output (use local name, if omitted).
π§ FILTER ARGUMENTS 'nominatim export' π§
--restrict-to-country COUNTRY_CODEβ export only objects within country.--restrict-to-osm-node IDβ export only children of this OSM node.--restrict-to-osm-way IDβ export only children of this OSM way.--restrict-to-osm-relation IDβ export only children of this OSM relation.
π COMMAND 'nominatim convert' π
usage:
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) π
it dumps a read-only version of the database in a different format. at the moment only a SQLite database suitable for reverse lookup can be created. that's the whole vibe.
π OPTIONS 'nominatim convert' π
--format {sqlite}β format of the output database (must besqlitecurrently).--output OUTPUT,-o OUTPUTβ file to write the database to.
π DEFAULT ARGUMENTS 'nominatim convert' π
-q,--quietβ print only error messages.-v,--verboseβ increase verboseness of output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use.
π οΈ SWITCHES TO DEFINE DATABASE LAYOUT(CURRENTLY NO EFFECT) 'nominatim convert' π οΈ
--with-reverse,--without-reverseβ enable/disable support for reverse and lookup API (default: enabled).--with-search,--without-searchβ enable/disable support for search API (default: disabled).--with-details,--without-detailsβ enable/disable support for details API (default: enabled).
π COMMAND 'nominatim serve' π
usage:
usage: nominatim serve [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
[--server SERVER] [--engine {falcon,starlette}]
this starts a simple web server for serving the API. built-in webserver, serving the website from the current project directory. it is only suitable for testing and development β do not use it in production setups! π
there are two different webserver implementations for Python available: falcon (the default) and starlette. you need to make sure the appropriate Python packages as well as the uvicorn package are installed to use this function.
by the default, the webserver can be accessed at: http://127.0.0.1:8088 π
π DEFAULT ARGUMENTS 'nominatim serve' π
-q,--quietβ print only error messages.-v,--verboseβ increase verboseness of output.--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/).-j NUM,--threads NUMβ number of parallel threads to use.
π¦ SERVER ARGUMENTS 'nominatim serve' π¦
--server SERVERβ the address the server will listen to.--engine {falcon,starlette}β webserver framework to run. (default:falcon).
π COMMAND 'nominatim search' π
okay bestie, this is the one you'll use constantly, so pay attention β¨
usage: nominatim search [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
[--query QUERY] [--amenity AMENITY] [--street
STREET]
[--city CITY] [--county COUNTY] [--state STATE]
[--country COUNTRY] [--postalcode POSTALCODE]
[--format FORMAT] [--addressdetails]
[--extratags]
[--entrances] [--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] [--layer
LAYER]
[--no-dedupe] [--list-formats]
So what does it do? It runs a search query. Full stop. π
And here's the slay part: it works exactly the same as if you'd called the /search endpoint on the web API. Like, literally identical behaviour. If you want the deets on all the params, the online docs are right there:
https://nominatim.org/release-docs/latest/api/Search/
π DEFAULT ARGUMENTS 'nominatim search' π
-q,--quietβ print only error messages (silence is golden, bestie π€«)-v,--verboseβ increases how verbose the output gets--project-dir DIRβ the base directory of your Nominatim installation (default:/var/lib/nominatim/)-j NUM,--threads NUMβ how many parallel threads to use
πΈ QUERY ARGUMENTS 'nominatim search' πΈ
--query QUERYβ a free-form query string--amenity AMENITYβ structured query: name and/or type of POI--street STREETβ structured query: housenumber and street--city CITYβ structured query: city, town or village--county COUNTYβ structured query: county--state STATEβ structured query: state--country COUNTRYβ structured query: country--postalcode POSTALCODEβ structured query: postcode
ngl, the structured ones are giving "fill out the form" energy β you pick the fields you actually know and leave the rest π«Ά
π OUTPUT FORMATTING 'nominatim search' π
--format FORMATβ the format of the result (use--list-formatto see which formats are supported)--addressdetailsβ include a breakdown of the address into its elements--extratagsβ include additional info if it's available (e.g. wikipedia link, opening hours)--entrancesβ include a list of tagged entrance nodes--namedetailsβ include a list of alternative names--lang LANGS,--accept-language LANGSβ preferred language order for presenting search results--polygon-output {geojson,kml,svg,text}β output the geometry of results as a GeoJSON, KML, SVG or WKT--polygon-threshold TOLERANCEβ simplify the output geometry. The parameter is the difference tolerance in degrees.
π¦ RESULT LIMITATION 'nominatim search' π¦
--countrycodes CC,..β limit search results to one or more countries--exclude_place_ids ID,..β list of search objects to be excluded--limit LIMITβ limit the number of returned results--viewbox X1,Y1,X2,Y2β preferred area to find search results in--boundedβ strictly restrict results to the viewbox area--layer LAYERβ restrict results to one or more layers (this one may be repeated π)--no-dedupeβ do not remove duplicates from the result list
β OTHER OPTIONS 'nominatim search' β
--list-formatsβ list the supported output formats and exit. that's it, that's the whole job π
π COMMAND 'nominatim reverse' π
usage: nominatim reverse [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
[--lat LAT] [--lon LON] [--zoom ZOOM] [--layer
LAYER]
[--format FORMAT] [--addressdetails]
[--extratags]
[--entrances] [--namedetails] [--lang LANGS]
[--polygon-output {geojson,kml,svg,text}]
[--polygon-threshold TOLERANCE]
[--list-formats]
Executes an API reverse query β you give it coordinates, it tells you what's there πΊοΈβ¨
Same deal as before: this works exactly the same as calling the /reverse endpoint on the web API. Online docs for all the params:
https://nominatim.org/release-docs/latest/api/Reverse/
π§ DEFAULT ARGUMENTS 'nominatim reverse' π§
-q,--quietβ print only error messages-v,--verboseβ increase the verboseness of output--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/)-j NUM,--threads NUMβ number of parallel threads to use
π QUERY ARGUMENTS 'nominatim reverse' π
--lat LATβ latitude of the coordinate to look up (in WGS84)--lon LONβ longitude of the coordinate to look up (in WGS84)--zoom ZOOMβ the level of detail required for the address--layer LAYERβ restrict results to one or more layers (may be repeated, yes queen π)
π OUTPUT FORMATTING 'nominatim reverse' π
--format FORMATβ format of result (use--list-formatto see supported formats)--addressdetailsβ include a breakdown of the address into elements--extratagsβ include additional information if available (e.g. wikipedia link, opening hours)--entrancesβ include a list of tagged entrance nodes--namedetailsβ include a list of alternative names--lang LANGS,--accept-language LANGSβ preferred language order for presenting search results--polygon-output {geojson,kml,svg,text}β output geometry of results as a GeoJSON, KML, SVG or WKT--polygon-threshold TOLERANCEβ simplify output geometry. Parameter is the difference tolerance in degrees.
π» OTHER OPTIONS 'nominatim reverse' π»
--list-formatsβ list supported output formats and exit.
π¦ COMMAND 'nominatim lookup' π¦
usage: nominatim lookup [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
[--id OSMID] [--format FORMAT]
[--addressdetails]
[--extratags] [--entrances] [--namedetails]
[--lang LANGS]
[--polygon-output {geojson,kml,svg,text}]
[--polygon-threshold TOLERANCE] [--list-formats]
Executes an API lookup query β this is the "I already know the OSM id, just hand me the object" move π
Works exactly the same as calling the /lookup endpoint on the web API. Docs:
https://nominatim.org/release-docs/latest/api/Lookup/
π DEFAULT ARGUMENTS 'nominatim lookup' π
-q,--quietβ print only error messages-v,--verboseβ increase verboseness of output--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/)-j NUM,--threads NUMβ number of parallel threads to use
β¨ QUERY ARGUMENTS 'nominatim lookup' β¨
--id OSMIDβ the OSM id to look up, in the format<NRW><id>(may be repeated)
note the <NRW> β that's the letter telling it which object type you mean, iykyk π₯
πΈ OUTPUT FORMATTING 'nominatim lookup' πΈ
--format FORMATβ format of result (use--list-formatto see supported formats)--addressdetailsβ include a breakdown of the address into elements--extratagsβ include additional information if available (e.g. wikipedia link, opening hours)--entrancesβ include a list of tagged entrance nodes--namedetailsβ include a list of alternative names--lang LANGS,--accept-language LANGSβ preferred language order for presenting search results--polygon-output {geojson,kml,svg,text}β output geometry of results as a GeoJSON, KML, SVG or WKT--polygon-threshold TOLERANCEβ simplify output geometry. Parameter is the difference tolerance in degrees.
π OTHER OPTIONS 'nominatim lookup' π
--list-formatsβ list supported output formats and exit.
π₯ COMMAND '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]
[--format FORMAT] [--addressdetails]
[--keywords]
[--linkedplaces] [--entrances] [--hierarchy]
[--group_hierarchy] [--polygon_geojson]
[--lang LANGS] [--list-formats]
Executes an API details query β this is the "okay but tell me everything" one π
Works exactly the same as calling the /details endpoint on the web API. Docs:
https://nominatim.org/release-docs/latest/api/Details/
π« DEFAULT ARGUMENTS 'nominatim details' π«
-q,--quietβ print only error messages-v,--verboseβ increase verboseness of output--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/)-j NUM,--threads NUMβ number of parallel threads to use
π¦ QUERY ARGUMENTS 'nominatim details' π¦
--node NODE,-n NODEβ look up the OSM node with the given ID.--way WAY,-w WAYβ look up the OSM way with the given ID.--relation RELATION,-r RELATIONβ look up the OSM relation with the given ID.--place_id PLACE_ID,-p PLACE_IDβ database internal identifier of the OSM object to look up--class OBJECT_CLASSβ class type, used to disambiguate multiple entries of the same object.
π OUTPUT ARGUMENTS 'nominatim details' π
--format FORMATβ format of result (use--list-formatsto see supported formats)--addressdetailsβ include a breakdown of the address into elements--keywordsβ include a list of name keywords and address keywords--linkedplacesβ include details of places that are linked with this one--entrancesβ include a list of tagged entrance nodes--hierarchyβ include details of places lower in the address hierarchy--group_hierarchyβ group the places by type--polygon_geojsonβ include the geometry of the result--lang LANGS,--accept-language LANGSβ preferred language order for presenting search results
β OTHER OPTIONS 'nominatim details' β
--list-formatsβ list supported output formats and exit.
π«Ά COMMAND 'nominatim status' π«Ά
usage: nominatim status [-h] [-q] [-v] [--project-dir DIR] [-j NUM]
[--format FORMAT] [--list-formats]
Executes an API status query β the little "hey, you alive?" check-in for your install ππ
Works exactly the same as calling the /status endpoint on the web API. Docs:
https://nominatim.org/release-docs/latest/api/Status/
π DEFAULT ARGUMENTS 'nominatim status' π
-q,--quietβ print only error messages-v,--verboseβ increase verboseness of output--project-dir DIRβ base directory of the Nominatim installation (default:/var/lib/nominatim/)-j NUM,--threads NUMβ number of parallel threads to use
β¨ API PARAMETERS 'nominatim status' β¨
okay so here's the one knob you get for the API call itself, and honestly? it's a good one π
--format FORMATβ sets the format of the result. not sure which formats exist? bestie, just run--list-formatsand it'll spill the whole menu for you. π
β¨ OTHER OPTIONS 'nominatim status' β¨
the little extras, the garnish, the finishing touch πΈ
--list-formatsβ lists all the supported output formats and then dips out (exits). that's it, that's the whole job. iconic behaviour honestly π
β¨ AUTHOR β¨
brought to you by the Nominatim developer community β absolute legends, no cap π«Ά
want to slide into their inbox? info@nominatim.org π
β¨ DISTRIBUTION β¨
the latest version of Nominatim can be downloaded from https://nominatim.org β go get you the freshest build, girlie πβ
and that's the whole page, bestie!! you read all of it, i'm so proud ππ
okay so final vibe check before you close the tab: this page is for Nominatim, dated 2026-04-19, and it's NOMINATIM(1) in the manual β that's the source, version and date energy right there. slay, go forth, and may all your queries be fast ngl π β¨π
π¦ where this page comes from
- arch rolling: nominatim 5.3.2-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms