Skip to content

Instantly share code, notes, and snippets.

0x155d3af47e7693d571116c29cfce977c1ca8b4e1214295ac0b401c4c4a13aaf1

@AFDudley
AFDudley / NominatimOnEC2.md
Created January 7, 2016 23:19 — forked from econandrew/NominatimOnEC2.md
Instructions for installing an OpenStreetMap Nominatim geocoder instance on Amazon Linux / EC2 (Dec 2014)

Installing Nominatim on Amazon Linux / EC2

  1. Introduction

The official instructions for installing Nominatim are complete, but brief in places, and several steps must be changed in the Amazon Linux environment (which is roughly CentOS / Redhat). The steps below are rough record of what I did to get it working, but I didn't keep perfect track so you shouldn't rely on them as a shell script. Just follow each step, make sure it worked, and hopefully you'll need to adapt very little (version numbers, for one thing). (I also skip in and out of root, but you can be more careful if you like.)

  1. Setting up the EC2 instance

@AFDudley
AFDudley / country_codes.json
Created January 2, 2016 10:05 — forked from orenitamar/country_codes.json
Two letter country code mapping, grouped by continent/region
{
"europe": {
"va": "vatican city",
"ch": "switzerland",
"ad": "andorra",
"ee": "estonia",
"is": "iceland",
"am": "armenia",
"al": "albania",
"cz": "czech republic",
# Place this command in your .bashrc (or whatever is appropriate for your shell of choice).
alias aws='client=$1 source ~/bin/aws.sh $client'