nextzen / whosonfirst-www-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

whosonfirst-www-api

Setting up a local Elasticsearch index

These are working notes so adjust your expectations accordingly. There is nothing whosonfirst-www-api specific about these instructions. It's just the first place we've written it all down...

./ubuntu/setup-elasticsearch.sh 
git clone git@github.com:whosonfirst/es-whosonfirst-schema.git
cd es-whosonfirst-schema/
cat ./schema/mappings.spelunker.json | curl -XPUT 'http://localhost:9200/whosonfirst_20160708' -d @-
curl -XPOST http://HOST:9200/_aliases -d '{ "actions": [ { "add": { "alias": "whosonfirst", "index": "whosonfirst_20160708" }} ] }'
curl -XPOST http://localhost:9200/_aliases -d '{ "actions": [ { "add": { "alias": "whosonfirst", "index": "whosonfirst_20160708" }} ] }'
cd -
sudo apt-get install python-shapely
git clone git@github.com:whosonfirst/py-mapzen-search.git
cd py-mapzen-whosonfirst
sudo python ./setup.py install
cd -
wof-es-index -s /usr/local/mapzen/whosonfirst-data/data/ -b

About


Languages

Language:JavaScript 62.6%Language:PHP 25.2%Language:CSS 11.5%Language:Shell 0.4%Language:Makefile 0.2%Language:Smarty 0.1%Language:Standard ML 0.0%