Skip to content

Commit

Permalink
Merge pull request #334 from pelias/add-water-placetypes
Browse files Browse the repository at this point in the history
fix(parent): Add ocean and marinearea to parent fields
  • Loading branch information
orangejulius authored Nov 5, 2018
2 parents b679d16 + b7a2d88 commit 666cc16
Show file tree
Hide file tree
Showing 3 changed files with 402 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mappings/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ var schema = {
continent_a: admin,
continent_id: literal,

// https://github.com/whosonfirst/whosonfirst-placetypes#ocean
ocean: admin,
ocean_a: admin,
ocean_id: literal,

// https://github.com/whosonfirst/whosonfirst-placetypes#empire
empire: admin,
empire_a: admin,
Expand All @@ -72,6 +77,11 @@ var schema = {
dependency_a: admin,
dependency_id: literal,

// https://github.com/whosonfirst/whosonfirst-placetypes#marinearea
marinearea: admin,
marinearea_a: admin,
marinearea_id: literal,

// https://github.com/whosonfirst/whosonfirst-placetypes#macroregion
macroregion: admin,
macroregion_a: admin,
Expand Down
2 changes: 2 additions & 0 deletions test/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ module.exports.tests.address_analysis = function(test, common) {
module.exports.tests.parent_fields = function(test, common) {
var fields = [
'continent', 'continent_a', 'continent_id',
'ocean', 'ocean_a', 'ocean_id',
'empire', 'empire_a', 'empire_id',
'country', 'country_a', 'country_id',
'dependency', 'dependency_a', 'dependency_id',
'marinearea', 'marinearea_a', 'marinearea_id',
'macroregion', 'macroregion_a', 'macroregion_id',
'region', 'region_a', 'region_id',
'macrocounty', 'macrocounty_a', 'macrocounty_id',
Expand Down
Loading

0 comments on commit 666cc16

Please sign in to comment.