Skip to content

Commit

Permalink
Added capitals-wikipedia.txt
Browse files Browse the repository at this point in the history
Refs #1
  • Loading branch information
ingenieroariel committed Sep 16, 2015
1 parent fad06eb commit 132caef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ admin1.names.txt:
admin0.names.txt:
psql -d $(DATABASE_NAME) -F , --no-align -c 'SELECT adm0_name FROM g2015_2014_0 ORDER BY adm0_name' >> $@

capitals.json:
capitals-osm.json:
wget -O $@ http://overpass-api.de/api/interpreter?data=%2F*%0AThis%20has%20been%20generated%20by%20the%20overpass-turbo%20wizard.%0AThe%20original%20search%20was%3A%0A%E2%80%9Cplace%3Dcity%20and%20capital%3Dyes%E2%80%9D%0A*%2F%0A%5Bout%3Ajson%5D%3B%0A%2F%2F%20gather%20results%0A%28%0A%20%20%2F%2F%20query%20part%20for%3A%20%E2%80%9Cplace%3Dcity%20and%20capital%3Dyes%E2%80%9D%0A%20%20node%5B%22place%22%3D%22city%22%5D%5B%22capital%22%3D%22yes%22%5D%5B%22admin_level%22%3D2%5D%3B%0A%29%3B%0A%2F%2F%20print%20results%0Aout%20body%3B%0A%3E%3B%0Aout%20skel%20qt%3B

capitals-osm.txt: capitals-osm.json
python plain_capitals.py $< | sort >> $@

capitals-wikipedia.txt:
curl -o $@ "https://docs.google.com/spreadsheets/d/1FniK9JaWQmmQrt_PfUlTnI1pXk23kz4wnEH3jFiF8Js/pub?gid=0&single=true&output=tsv"

0 comments on commit 132caef

Please sign in to comment.