UNPKG

pelias-config

Version:

Configuration settings for Pelias

131 lines (130 loc) 3.22 kB
{ "esclient": { "apiVersion": "7.x", "keepAlive": true, "requestTimeout": "120000", "hosts": [{ "env": "production", "protocol": "http", "host": "localhost", "port": 9200 },{ "env": "production", "protocol": "http", "host": "localhost", "port": 9300 }], "log": [{ "type": "stdio", "json": false, "level": [ "error", "warning" ] }] }, "elasticsearch": { "settings": { "index": { "number_of_replicas": "0", "number_of_shards": "5", "refresh_interval": "1m" } } }, "interpolation": { "client": { "adapter": "null" } }, "dbclient": { "statFrequency": 10000, "batchSize": 500 }, "api": { "accessLog": "common", "indexName": "pelias", "host": "http://pelias.mapzen.com/", "version": "1.0", "targets": { "auto_discover": true, "canonical_sources": ["whosonfirst", "openstreetmap", "openaddresses", "geonames"], "layers_by_source": { "openstreetmap": [ "address", "venue", "street" ], "openaddresses": [ "address" ], "geonames": [ "country", "macroregion", "region", "county", "localadmin", "locality", "borough", "neighbourhood", "venue" ], "whosonfirst": [ "continent", "empire", "country", "dependency", "macroregion", "region", "locality", "localadmin", "macrocounty", "county", "macrohood", "borough", "neighbourhood", "microhood", "disputed", "venue", "postalcode", "ocean", "marinearea" ] }, "source_aliases": { "osm": [ "openstreetmap" ], "oa": [ "openaddresses" ], "gn": [ "geonames" ], "wof": [ "whosonfirst" ] }, "layer_aliases": { "coarse": [ "continent", "empire", "country", "dependency", "macroregion", "region", "locality", "localadmin", "macrocounty", "county", "macrohood", "borough", "neighbourhood", "microhood", "disputed", "postalcode", "ocean", "marinearea" ] } } }, "schema": { "indexName": "pelias" }, "logger": { "level": "debug", "timestamp": true, "colorize": true }, "acceptance-tests": { "endpoints": { "local": "http://localhost:3100/v1/" } }, "imports": { "adminLookup": { "enabled": true, "maxConcurrentRequests": 100, "usePostalCities": true }, "blacklist": { "files": [] }, "csv": { }, "geonames": { "datapath": "~/geonames", "countryCode": "ALL" }, "openstreetmap": { "datapath": "~/openstreetmap", "leveldbpath": "/tmp/leveldb", "import": [{ "filename": "london.osm.pbf" }] }, "openaddresses": { "datapath": "~/openaddresses", "token": "oa.bbbcf5787bb4251445883cc417f811ba02b9fd64809fd56c5a972171fbcfb2f6", "files": [ "us-ny-nyc.csv" ] }, "polyline": { "datapath": "~/polyline", "files": [ "road_network.polylines" ] }, "whosonfirst": { "datapath": "~/whosonfirst", "importPostalcodes": true } } }