Skip to content

nextzen/whosonfirst-www-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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 [email protected]: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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.6%
  • PHP 25.2%
  • CSS 11.5%
  • Shell 0.4%
  • Makefile 0.2%
  • Smarty 0.1%