{
  "logger": {
    "level": "info",
    "timestamp": false
  },
  "esclient": {
    "hosts": [
      { "host": "elasticsearch" }
    ]
  },
  "elasticsearch": {
    "settings": {
      "index": {
        "refresh_interval": "10s",
        "number_of_replicas": "0",
        "number_of_shards": "1"
      }
    }
  },
  "acceptance-tests": {
    "endpoints": {
      "docker": "http://api:4000/v1/"
    }
  },
  "api": {
    "textAnalyzer": "libpostal",
    "services": {
      "placeholder": { "url": "http://placeholder:4100" },
      "pip": { "url": "http://pip:4200" },
      "interpolation": { "url": "http://interpolation:4300" },
      "libpostal": { "url": "http://libpostal:4400" }
    },
    "defaultParameters": {
      "focus.point.lat": 45.52,
      "focus.point.lon": -122.67
    }
  },
  "imports": {
    "adminLookup": {
      "enabled": true
    },
    "blacklist": {
      "files": [
        "/data/blacklist/osm.txt"
      ]
    },
    "csv": {
      "datapath": "/data/csv",
      "files": [],
      "download": [
        "https://raw.githubusercontent.com/pelias/transit/master/test/landmarks.csv"
      ]
    },
    "geonames": {
      "datapath": "/data/geonames",
      "countryCode": "ALL"
    },
    "openstreetmap": {
      "download": [
        { "sourceURL": "https://s3.amazonaws.com/metro-extracts.nextzen.org/portland_oregon.osm.pbf" }
      ],
      "leveldbpath": "/tmp",
      "datapath": "/data/openstreetmap",
      "import": [{
        "filename": "portland_oregon.osm.pbf"
      }]
    },
    "openaddresses": {
      "datapath": "/data/openaddresses",
      "files": [
        "us/or/portland_metro.csv",
        "us/or/city_of_salem.csv",
        "us/or/marion_and_polk.csv",
        "us/or/marion.csv",
        "us/or/hood_river.csv",
        "us/wa/city_of_richland.csv",
        "us/wa/clark.csv"
      ]
    },
    "polyline": {
      "datapath": "/data/polylines",
      "files": [ "extract.0sv" ]
    },
    "whosonfirst": {
      "datapath": "/data/whosonfirst",
      "importVenues": false,
      "importPostalcodes": true,
      "importPlace": [
        "85688513",
        "85688623"
      ]
    },
    "transit": {
      "datapath": "/data/transit",
      "feeds": [
        {
          "layerId": "bikeshare",
          "url": "http://biketownpdx.socialbicycles.com/opendata/station_information.json",
          "filename": "BIKETOWN-hubs.json",
          "agencyId": "BIKETOWN",
          "agencyName": "BIKETOWN",
          "layerName": "bikeshare"
        },
        {
          "layerId": "stops",
          "url": "http://developer.trimet.org/schedule/gtfs.zip",
          "filename": "TRIMET-stops.txt",
          "agencyId": "TRIMET",
          "agencyName": "TriMet",
          "layerName": "Stop"
        },
        {
          "layerId": "stops",
          "url": "http://www.c-tran.com/images/Google/GoogleTransitUpload.zip",
          "filename": "C-TRAN-stops.txt",
          "agencyId": "C-TRAN",
          "agencyName": "C-TRAN",
          "layerName": "Stop"
        },
        {
          "layerId": "stops",
          "url": "http://oregon-gtfs.com/gtfs_data/rideconnection-or-us/rideconnection-or-us.zip",
          "filename": "RIDECONNECTION-stops.txt",
          "agencyId": "RIDECONNECTION",
          "agencyName": "Ride Connection",
          "layerName": "Stop"
        },
        {
          "layerId": "stops",
          "url": "http://cherriots.org/developer/gtfs.zip",
          "filename": "CHERRIOTS-stops.txt",
          "agencyId": "CHERRIOTS",
          "agencyName": "Cherriots",
          "layerName": "Stop"
        },
        {
          "layerId": "stops",
          "url": "http://oregon-gtfs.com/gtfs_data/sandy-or-us/sandy-or-us.zip",
          "filename": "SAM-stops.txt",
          "agencyId": "SAM",
          "agencyName": "SAM",
          "layerName": "Stop"
        },
        {
          "layerId": "stops",
          "url": "http://data.trilliumtransit.com/gtfs/wilsonville-or-us/wilsonville-or-us.zip",
          "filename": "SMART-stops.txt",
          "agencyId": "SMART",
          "agencyName": "SMART",
          "layerName": "Stop"
        },
        {
          "layerId": "stops",
          "url": "http://oregon-gtfs.com/gtfs_data/swanisland-or-us/swanisland-or-us.zip",
          "filename": "SWAN-stops.txt",
          "agencyId": "SWAN",
          "agencyName": "Swan Island",
          "layerName": "Stop"
        }
      ]
    },
    "interpolation": {
      "download": {
        "tiger": {
          "datapath": "/data/tiger",
          "states": [
            { "state_code": 41, "county_code": 67, "name": "Washington County, OR" },
            { "state_code": 41, "county_code": 51, "name": "Multnomah County, OR" },
            { "state_code": 41, "county_code": 5,  "name": "Clackamas County, OR" },
            { "state_code": 41, "county_code": 71, "name": "Yamhill County, OR" },
            { "state_code": 41, "county_code": 47, "name": "Marion County, OR" },
            { "state_code": 41, "county_code": 53, "name": "Polk County, OR" },
            { "state_code": 53, "county_code": 11, "name": "Clark County, WA" }
          ]
        }
      }
    }
  }
}