Skip to main content

A tool for building a database of OpenStreetMap for geocoding and for searching the database. Database backend.

Project description

Nominatim - DB Backend

Nominatim is a tool to search OpenStreetMap data by name and address (geocoding) and to generate synthetic addresses of OSM points (reverse geocoding).

This module implements the database backend for Nominatim and the command-line tool for importing and maintaining the database.

Installation

Prerequisites

Nominatim requires osm2pgsql (>=1.8) for reading OSM data and PostgreSQL (>=9.6) to store the data.

On Ubuntu (>=23.04) and Debian (when using backports), you can install them with:

sudo apt-get install osm2pgsql postgresql-postgis

Installation from pypi

To install Nominatim from pypi, run:

pip install nominatim-db

Quick start

First create a project directory for your new Nominatim database, which is the space for additional configuration and customization:

mkdir nominatim-project

Make sure you run all nominatim commands from within the project directory:

cd nominatim-project

Download an appropriate data extract, for example from Geofabrik and import the file:

nominatim import --osm-file <downlaoded-osm-data.pbf>

You will need to install the nominatim-api package to query the database.

Documentation

A HTML version of the documentation can be found at https://nominatim.org/release-docs/latest/ .

License

The source code is available under a GPLv3 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nominatim_db-5.1.0.tar.gz (15.1 MB view details)

Uploaded Source

Built Distribution

nominatim_db-5.1.0-py3-none-any.whl (15.2 MB view details)

Uploaded Python 3

File details

Details for the file nominatim_db-5.1.0.tar.gz.

File metadata

  • Download URL: nominatim_db-5.1.0.tar.gz
  • Upload date:
  • Size: 15.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for nominatim_db-5.1.0.tar.gz
Algorithm Hash digest
SHA256 ea1ba61029280a83299d510079e3bca8b44f8685eff34f1861623b9fa9a997a4
MD5 6825755b3eb1c7da34a767a2b3d385fc
BLAKE2b-256 ea9e4c05d86dc803ac80411357f2f38ce1208bc92046815b0124b87122b0c1c6

See more details on using hashes here.

File details

Details for the file nominatim_db-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: nominatim_db-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for nominatim_db-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0e35c39a1bc61ee86fb7bb0a03f6e3ae3eefca2b8ea883d58555f900ded43e6
MD5 66062ad2b4e70fafff60aa1541380150
BLAKE2b-256 f3ac1cc1f4c996bb4fa5e34680d2e8aa9ab1e640f46d73e10ed94fffdfdd2b99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page