Skip to content

geocodeearth/pelias.dockerfiles

 
 

Repository files navigation

pelias.dockerfiles

Load both Pelias, and also Transit landmarks (GTFS, intersections from OSM, landmarks from .csv files, etc...)

  1. pre-reqs: have docker and docker-compose installed on your system, plus plenty of disk and memory
  2. export DATA_DIR=$PWD/data
  3. mkdir $DATA_DIR
  4. git clone --recursive https://github.com/OpenTransitTools/pelias.dockerfiles.git
  5. cd pelias.dockerfiles
  6. ./build.sh

Test:

  1. curl http://localhost:4000/v1/search?text=888%20SE%20Lambert%20St # should see "match_type": "interpolated" somewhere in there (that's good)
  2. curl http://localhost:4000/v1/search?text=stop%202 # should see "match_type": a bunch of records that are stop locations
  3. curl http://localhost:9200/pelias/_search?pretty=true&q=layer:intersections
  4. Call ES directly: http://localhost:9200/pelias/_search?pretty=true&q=layer:stops
  5. More ES: http://localhost:9200/pelias/_search?pretty=true&q=*

Update:

  1. cd pelias.dockerfiles
  2. git submodule update --init --recursive
  3. git pull
  4. ./nuke_containers.sh # use with caution, will drop most / all of your non-Pelias Docker env
  5. ./build.sh

Notes:

  1. pelias.transit.loader docker image on Docker Hub
  2. pelias.transit.loader code on GitHub
  3. TriMet's Staging Server Instance: https://ws-st.trimet.org/pelias/v1/search?api_key=YourTriMetApiKey&text=stops%202

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%