Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.17 KB

README.md

File metadata and controls

34 lines (20 loc) · 1.17 KB

The Problem

For a few projects, I wanted to do bulk geocoding. I didn't want to abuse the OSM servers; I didn't want to pay 50 cents per 1,000 requests on Google; and, I wanted to learn basic Docker. This project is a solution to all three problems.

Installation

git clone https://github.com/ktjaco/dockerized-nominatim.git
cd dockerized-nominatim

# Get your extract locally. In case there is a problem, 
# it's more polite than downloading it a few times. 
wget http://download.geofabrik.de/europe/monaco-latest.osm.pbf

docker build --build-arg PBF=monaco-latest.osm.pbf -t nominatim-monaco .

Usage

docker run -p 8080:80 nominatim-monaco

docker-machine ip # => IP address if using docker-machine

google-chrome http://docker-ip:8080/nominatim/

Then, see the API for mechanical queries.

Caveats

I am not a devops guy. Surely, there are better solutions. I based this code partially off of nominatim-docker. If that image doesn't work for you, use this one. But, I'd probably try that one first.