diff --git a/README.md b/README.md index bda2627a..6f4a1fa6 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,53 @@ The API ships with several convenience commands (runnable via `npm`): ## pelias-config The API recognizes the following properties under the top-level `api` key in your `pelias.json` config file: - * `accessLog`: (*optional*) The name of the format to use for access logs; may be any one of the +|parameter|required|default|description| +|---|---|---|---| +|`host`|*yes*||specifies the url under which the http service is to run| +|`textAnalyzer`|*no*|*addressit*|can be either `libpostal` or `addressit` however will soon be **deprecated** and only `libpostal` will be supported going forward| +|`indexName`|*no*|*pelias*|name of the Elasticsearch index to be used when building queries| +|`legacyUrl`|*no*||the url to redirect to in case the user does not specify a version such as `v1` +|`relativeScores`|*no*|true|if set to true, confidence scores will be normalized, realistically at this point setting this to false is not tested or desirable +|`accessLog`|*no*||name of the format to use for access logs; may be any one of the [predefined values](https://github.com/expressjs/morgan#predefined-formats) in the `morgan` package. Defaults to - `"common"`; if set to `false`, or an otherwise falsy value, disables access-logging entirely. + `"common"`; if set to `false`, or an otherwise falsy value, disables access-logging entirely.| +|`pipService`|*yes*||full url to the pip service to be used for coarse reverse queries. if missing, which is not recommended, the service will default to using nearby lookups instead of point-in-polygon.| + +Example configuration file would look something like this: + +``` +{ + "esclient": { + "keepAlive": true, + "requestTimeout": "1200000", + "hosts": [ + { + "protocol": "http", + "host": "somesemachine.elb.amazonaws.com", + "port": 9200 + } + ] + }, + "api": { + "host": "localhost:3100/v1/", + "indexName": "foobar", + "legacyUrl": "pelias.mapzen.com", + "relativeScores": true, + "textAnalyzer": "libpostal", + "pipService": "http://mypipservice.com/3000" + }, + "interpolation": { + "client": { + "adapter": "http", + "host": "internal-pelias-interpolation-dev-130430937.us-east-1.elb.amazonaws.com" + } + }, + "logger": { + "level": "debug" + } +} +``` + ## Contributing