Nominatim is a powerful and free geocoding and reverse geocoding software that allows developers and data analysts to convert addresses into geographic coordinates and vice versa. It is widely used by organizations and individuals seeking to create location-based applications and analysis.
In this tutorial, we will guide you through the process of installing Nominatim on your Windows 11 computer.
Before you begin, make sure you have the following prerequisites installed on your computer:
Open the Git Bash command prompt by clicking on the Start menu and searching for "Git Bash".
In the Git Bash window, navigate to the directory where you want to clone the Nominatim repository. You can do this by using the cd
command.
cd C:\nominatim
git clone --recursive https://github.com/osm-search/Nominatim.git
Open the PostgreSQL command prompt by clicking on the Start menu and searching for "PostgreSQL".
In the PostgreSQL command prompt, create a new database named "nominatim" by running this command:
CREATE DATABASE nominatim;
cd Nominatim
./utils/setup.php --setup-database
./utils/setup.php --create-functions --enable-diff-updates
./utils/setup.php --import-osmosis-all
./utils/setup.php --build --no-npi
./utils/setup.php --create-website --create-api-keys
./utils/start.php
Open your web browser and go to http://localhost/nominatim/. You should see the Nominatim search interface.
Enter an address or a place name in the search box and click "Search". Nominatim should return the corresponding geographic coordinates and other related information.
Congratulations, you have successfully installed Nominatim on your Windows 11 computer! Feel free to explore its features and integrate it into your projects.
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!