From 77f396d5cb5ab9f7981400885b2c959d2ccc0381 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Fri, 18 Mar 2016 09:33:24 -0400 Subject: [PATCH] exposed `macrocounty` and `macroregion` fields in geojsonify --- helper/geojsonify.js | 6 ++++++ test/unit/helper/geojsonify.js | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/helper/geojsonify.js b/helper/geojsonify.js index 8910767d..1f9a60a8 100644 --- a/helper/geojsonify.js +++ b/helper/geojsonify.js @@ -16,9 +16,15 @@ var DETAILS_PROPS = [ 'country', 'country_id', 'country_a', + 'macroregion', + 'macroregion_id', + 'macroregion_a', 'region', 'region_id', 'region_a', + 'macrocounty', + 'macrocounty_id', + 'macrocounty_a', 'county', 'county_id', 'county_a', diff --git a/test/unit/helper/geojsonify.js b/test/unit/helper/geojsonify.js index 0aa6b39c..7b371b27 100644 --- a/test/unit/helper/geojsonify.js +++ b/test/unit/helper/geojsonify.js @@ -246,6 +246,15 @@ module.exports.tests.search = function(test, common) { 'country_a': [ 'USA' ], + 'macroregion': [ + 'MacroRegion Name' + ], + 'macroregion_id': [ + 'MacroRegion Id' + ], + 'macroregion_a': [ + 'MacroRegion Abbreviation' + ], 'region': [ 'New York' ], @@ -255,6 +264,15 @@ module.exports.tests.search = function(test, common) { 'region_a': [ 'NY' ], + 'macrocounty': [ + 'MacroCounty Name' + ], + 'macrocounty_id': [ + 'MacroCounty Id' + ], + 'macrocounty_a': [ + 'MacroCounty Abbreviation' + ], 'county': [ 'Kings County' ], @@ -300,9 +318,15 @@ module.exports.tests.search = function(test, common) { 'country': 'United States', 'country_id': '85633793', 'country_a': 'USA', + 'macroregion': 'MacroRegion Name', + 'macroregion_id': 'MacroRegion Id', + 'macroregion_a': 'MacroRegion Abbreviation', 'region': 'New York', 'region_id': '85688543', 'region_a': 'NY', + 'macrocounty': 'MacroCounty Name', + 'macrocounty_id': 'MacroCounty Id', + 'macrocounty_a': 'MacroCounty Abbreviation', 'county': 'Kings County', 'county_id': '102082361', 'localadmin': 'Brooklyn',