Browse Source

Add example of using blacklist functionality

This removes the problematic PDX record from OSM (which has a centroid
that is unhelpful for routing, with no clear way to fix).
pull/17/head
Julian Simioni 6 years ago committed by Peter Johnson
parent
commit
0b98d59a03
  1. 1
      projects/portland-metro/blacklist/osm.txt
  2. 3
      projects/portland-metro/docker-compose.yml
  3. 5
      projects/portland-metro/pelias.json

1
projects/portland-metro/blacklist/osm.txt

@ -0,0 +1 @@
openstreetmap:venue:way:59581827 # remove the problematic portland airport record

3
projects/portland-metro/docker-compose.yml

@ -38,18 +38,21 @@ services:
volumes: volumes:
- "./pelias.json:/code/pelias.json" - "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data" - "${DATA_DIR}:/data"
- "./blacklist/:/data/blacklist"
openstreetmap: openstreetmap:
image: pelias/openstreetmap:master image: pelias/openstreetmap:master
container_name: pelias_openstreetmap container_name: pelias_openstreetmap
volumes: volumes:
- "./pelias.json:/code/pelias.json" - "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data" - "${DATA_DIR}:/data"
- "./blacklist/:/data/blacklist"
openaddresses: openaddresses:
image: pelias/openaddresses:master image: pelias/openaddresses:master
container_name: pelias_openaddresses container_name: pelias_openaddresses
volumes: volumes:
- "./pelias.json:/code/pelias.json" - "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data" - "${DATA_DIR}:/data"
- "./blacklist/:/data/blacklist"
transit: transit:
image: pelias/transit:master image: pelias/transit:master
container_name: pelias_transit container_name: pelias_transit

5
projects/portland-metro/pelias.json

@ -39,6 +39,11 @@
"adminLookup": { "adminLookup": {
"enabled": true "enabled": true
}, },
"blacklist": {
"files": [
"/data/blacklist/osm.txt"
]
},
"geonames": { "geonames": {
"datapath": "/data/geonames", "datapath": "/data/geonames",
"countryCode": "ALL" "countryCode": "ALL"

Loading…
Cancel
Save