Skip to content

Commit

Permalink
Merge pull request #83 from pelias/config_source_layers
Browse files Browse the repository at this point in the history
feat(targets): add API filter targets to config
  • Loading branch information
missinglink authored May 17, 2018
2 parents 8c04125 + 9a7d075 commit 4cf4c1a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
31 changes: 30 additions & 1 deletion config/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,36 @@
"textAnalyzer": "libpostal",
"host": "http://pelias.mapzen.com/",
"indexName": "pelias",
"version": "1.0"
"version": "1.0",
"targets": {
"auto_discover": false,
"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", "continent", "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", "continent", "ocean", "marinearea"
]
}
}
},
"schema": {
"indexName": "pelias"
Expand Down
31 changes: 30 additions & 1 deletion config/expected-deep.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,36 @@
"textAnalyzer": "libpostal",
"indexName": "pelias",
"host": "http://pelias.mapzen.com/",
"version": "1.0"
"version": "1.0",
"targets": {
"auto_discover": false,
"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", "continent", "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", "continent", "ocean", "marinearea"
]
}
}
},
"schema": {
"indexName": "pelias"
Expand Down

0 comments on commit 4cf4c1a

Please sign in to comment.