1 # Nominatim - DB Backend
 
   3 Nominatim is a tool to search OpenStreetMap data
 
   4 by name and address (geocoding) and to generate synthetic addresses of
 
   5 OSM points (reverse geocoding).
 
   7 This module implements the database backend for Nominatim and the
 
   8 command-line tool for importing and maintaining the database.
 
  14 Nominatim requires [osm2pgsql](https://osm2pgsql.org/) (>=1.8) for reading
 
  15 OSM data and [PostgreSQL](https://www.postgresql.org/) (>=9.6) to store the data.
 
  17 On Ubuntu (>=23.04) and Debian (when using backports), you can install them with:
 
  19     sudo apt-get install osm2pgsql postgresql-postgis
 
  21 ### Installation from pypi
 
  23 To install Nominatim from pypi, run:
 
  25     pip install nominatim-db
 
  30 First create a project directory for your new Nominatim database, which
 
  31 is the space for additional configuration and customization:
 
  33     mkdir nominatim-project
 
  35 Make sure you run all nominatim commands from within the project directory:
 
  39 Download an appropriate data extract, for example from
 
  40 [Geofabrik](https://download.geofabrik.de/) and import the file:
 
  42     nominatim import --osm-file <downlaoded-osm-data.pbf>
 
  44 You will need to install the [`nominatim-api`](https://pypi.org/project/nominatim-api/)
 
  45 package to query the database.
 
  49 A HTML version of the documentation can be found at
 
  50 https://nominatim.org/release-docs/latest/ .
 
  54 The source code is available under a GPLv3 license.