Nominatim is a free, open-source tool that helps in geocoding and reverse geocoding. It is used to convert addresses into geographic coordinates (latitude and longitude) and vice versa. In this tutorial, we will show you how to install Nominatim on Windows 10.
Nominatim requires PostgreSQL as a backend database. Follow the steps mentioned below to install PostgreSQL on your Windows 10 machine.
Download the latest version of PostgreSQL from the official website.
Run the installer and follow the onscreen instructions to install PostgreSQL.
During the installation process, you will be prompted to select a password for the PostgreSQL superuser account. Make sure to remember this password.
After the installation is complete, open the pgAdmin application.
Nominatim has several dependencies that need to be installed before installing it. Follow the steps mentioned below to install the dependencies.
Open the Command Prompt application with administrator privileges.
Run the following command to install the dependencies.
choco install -y automake libtool pkg-config cmake gcc magick imagemagick
Open the Command Prompt application with administrator privileges.
Run the following command to clone the Nominatim repository.
git clone --recursive https://github.com/openstreetmap/Nominatim.git
cd Nominatim
./configure && make
During the build process, you may encounter several warnings and errors. Make sure to resolve them before proceeding.
Once the build is complete, run the following command to install Nominatim.
sudo make install
sudo useradd -m -p $(openssl passwd -1 nominatim) nominatim
sudo ./utils/setup.php --create-website /nominatim
sudo ./utils/setup.php --import-data <country-code> --osm-file <path-to-your-osm-file>
sudo chown -R <your-username>:<your-group> /srv/nominatim
sudo systemctl start nominatim.service
In this tutorial, we have shown you how to install Nominatim on Windows 10. You can now use Nominatim to convert addresses into geographic coordinates and vice versa.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!