diff --git a/helper/geojsonify_place_details.js b/helper/geojsonify_place_details.js index abaefe27..297ca3bd 100644 --- a/helper/geojsonify_place_details.js +++ b/helper/geojsonify_place_details.js @@ -12,6 +12,9 @@ var DETAILS_PROPS = [ { name: 'country', type: 'string' }, { name: 'country_gid', type: 'string' }, { name: 'country_a', type: 'string' }, + { name: 'dependency', type: 'string' }, + { name: 'dependency_gid', type: 'string' }, + { name: 'dependency_a', type: 'string' }, { name: 'macroregion', type: 'string' }, { name: 'macroregion_gid', type: 'string' }, { name: 'macroregion_a', type: 'string' }, diff --git a/helper/placeTypes.js b/helper/placeTypes.js index 76538982..c9550ce7 100644 --- a/helper/placeTypes.js +++ b/helper/placeTypes.js @@ -1,5 +1,6 @@ module.exports = [ 'country', + 'dependency', 'macroregion', 'region', 'macrocounty', diff --git a/test/unit/helper/geojsonify.js b/test/unit/helper/geojsonify.js index 00107af2..ef7da91e 100644 --- a/test/unit/helper/geojsonify.js +++ b/test/unit/helper/geojsonify.js @@ -58,6 +58,7 @@ module.exports.tests.geojsonify = function(test, common) { 'postalcode': 'N1 0RW', 'country_a': 'GBR', 'country': 'United Kingdom', + 'dependency': 'dependency name', 'region': 'Islington', 'region_a': 'ISL', 'macroregion': 'England', @@ -85,6 +86,7 @@ module.exports.tests.geojsonify = function(test, common) { }, 'country_a': 'GBR', 'country': 'United Kingdom', + 'dependency': 'dependency name', 'region': 'City And County Of The City Of London', 'region_a': 'COL', 'macroregion': 'England', @@ -108,6 +110,7 @@ module.exports.tests.geojsonify = function(test, common) { }, 'country_a': 'USA', 'country': 'United States', + 'dependency': 'dependency name', 'region': 'New York', 'region_a': 'NY', 'county': 'New York', @@ -144,6 +147,7 @@ module.exports.tests.geojsonify = function(test, common) { 'name': '\'Round Midnight Jazz and Blues Bar', 'country_a': 'GBR', 'country': 'United Kingdom', + 'dependency': 'dependency name', 'macroregion': 'England', 'region': 'Islington', 'region_a': 'ISL', @@ -179,6 +183,7 @@ module.exports.tests.geojsonify = function(test, common) { 'name': 'Blues Cafe', 'country_a': 'GBR', 'country': 'United Kingdom', + 'dependency': 'dependency name', 'macroregion': 'England', 'region': 'City And County Of The City Of London', 'region_a': 'COL', @@ -207,6 +212,7 @@ module.exports.tests.geojsonify = function(test, common) { 'name': 'Empire State Building', 'country_a': 'USA', 'country': 'United States', + 'dependency': 'dependency name', 'region': 'New York', 'region_a': 'NY', 'county': 'New York', @@ -267,6 +273,15 @@ module.exports.tests.geojsonify = function(test, common) { 'country_a': [ 'USA' ], + 'dependency': [ + 'dependency name' + ], + 'dependency_gid': [ + 'dependency id' + ], + 'dependency_a': [ + 'dependency abbrevation' + ], 'macroregion': [ 'MacroRegion Name' ], @@ -341,6 +356,9 @@ module.exports.tests.geojsonify = function(test, common) { 'country': 'United States', 'country_gid': '85633793', 'country_a': 'USA', + 'dependency': 'dependency name', + 'dependency_gid': 'dependency id', + 'dependency_a': 'dependency abbrevation', 'macroregion': 'MacroRegion Name', 'macroregion_gid': 'MacroRegion Id', 'macroregion_a': 'MacroRegion Abbreviation',