Overview
Nominatim is the open-source geocoder behind the search box on openstreetmap.org. It turns addresses and place names into coordinates (search) and coordinates into addresses (reverse geocoding), using OpenStreetMap data.
The public Nominatim server allows only one request a second, discourages bulk geocoding and blocks clients that go over its limits, so to geocode in volume you need your own server. Our image turns that into a short, guided job rather than a project.
What you get
- Nominatim 5.3, with its Python API frontend, runs on Ubuntu 24.04 LTS with PostgreSQL 16, PostGIS 3 and osm2pgsql.
- A setup wizard, nominatim-setup, that will guide you through the installation. You run it once over SSH, and it:
- lets you pick map data from the full Geofabrik catalogue (continents, countries, states and smaller regions), several at once, or the whole planet
- shows the download size and estimates disk, memory and import time, and warns before you start if the instance is too small
- can format an empty EBS volume you attach and put the database on it
- lets you choose what to import (from administrative boundaries only up to every point of interest), Wikipedia-based ranking of results, UK and US postcode data, and search by category such as "pharmacy in Lyon"
- sets PostgreSQL's memory and import settings for your instance size, then switches it to safe settings for serving once the import is done
- We've added access control, which Nominatim itself doesn't have. You can use API keys (sent as a header or URL parameter and managed with one command), an IP allowlist, or open access behind your security groups.
- The wizard can set up HTTPS with a free Let's Encrypt certificate, which renews automatically.
- An hourly job keeps the data current, using Geofabrik's daily changes for regions and OpenStreetMap's hourly changes for the planet.
- Add or remove regions later with one command (sudo nominatim-setup add-region / remove-region). The new database is built beside the live one, so the API keeps serving.
- The API runs under gunicorn behind nginx and is managed by systemd. An open /status endpoint works as a load-balancer health check.
How it works
- Launch the instance with enough storage for your data, or attach an empty EBS volume.
- Connect with SSH and run sudo nominatim-setup.
- Answer a few questions. The download and import then run in the background, keep going if you log out, and resume after a reboot.
- Follow progress with sudo nominatim-setup status, or open /setup-status.txt in a browser.
- When the import finishes, the API answers on port 80 or 443, and a summary file lists your URLs and API key.
A single country usually imports in a few hours. A continent takes a day or more, and the planet several days. All of this runs on your own instance.
The same setup can run without the wizard (nominatim-setup configure --region ...), for example from EC2 user data, so you can automate it.
Good for
- Batch geocoding of address lists
- Address search and autocomplete in your own applications
- Reverse geocoding of GPS tracks and fleet positions
- Teams that can't send addresses to third-party geocoding services
Recommended instances
Use a memory-optimised instance (r6i, r7i, r6a) with gp3 storage. As a rough guide:
- a single country: r6i.large to r6i.xlarge, 100-200 GB
- a continent: r6i.4xlarge or larger, 0.5-1 TB
- the planet: 128 GB of RAM or more and about 1.2 TB
You can move to a smaller instance after the import.
OpenStreetMap data is (c) OpenStreetMap contributors and available under the Open Database License (ODbL). Applications that show results must give attribution. Nominatim is free software under the GPL v3. This product is not affiliated with or endorsed by the OpenStreetMap Foundation or the Nominatim project.
Highlights
- A setup wizard will guide you through choosing your regions, from one country to the whole planet. It checks your disk and memory before you start, and the import keeps running if you log out.
- We've set it up for production. PostgreSQL is tuned to your instance, the API runs behind nginx with an open /status health check, and you can protect it with API keys or an IP allowlist and turn on HTTPS.
- Your data stays current without any work from you, because an hourly job applies the latest OpenStreetMap changes. You can geocode as many addresses as you like on your own instance.
Details
Features and programs
Financing for AWS Marketplace purchases
Pricing
Dimension | Cost/hour |
|---|---|
r6i.xlarge Recommended | $0.01 |
m6a.2xlarge | $0.014 |
m6a.4xlarge | $0.028 |
m6a.8xlarge | $0.055 |
m6a.12xlarge | $0.083 |
m6a.16xlarge | $0.111 |
m6a.24xlarge | $0.166 |
m6a.32xlarge | $0.221 |
m6a.48xlarge | $0.332 |
m6a.large | $0.003 |
Vendor refund policy
No refunds.
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
Nominatim 5.3.3 on Ubuntu 24.04 with the nominatim-setup wizard.
Additional details
Usage instructions
Nominatim is installed but has no map data until you choose it:
- Launch with enough disk for the regions you want (or attach an empty EBS volume). Rough guide: a country 50-200 GB, Europe ~500 GB, the planet ~1.2 TB.
- Connect with SSH as ubuntu and run: sudo nominatim-setup
- Pick regions (any Geofabrik extract, several at once, or the planet), what to import, who may use the API (API key, IP allowlist or open) and optionally HTTPS with a Let's Encrypt certificate.
- The download and import run in the background. Follow them with: sudo nominatim-setup status (or http://<instance>/setup-status.txt).
- When it finishes, the API is on port 80 (or 443): /search, /reverse, /lookup, /status. The URLs and API key are in /home/ubuntu/nominatim-setup.txt.
Import time depends on the region and instance: hours for a country, days for the planet. Memory-optimised instances (r6i/r7i) with gp3 storage work best. Full documentation: see the product page.
Resources
Vendor resources
Support
Vendor support
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.