Browse Source

exposed `macrocounty` and `macroregion` fields in geojsonify

pull/461/head
Stephen Hess 9 years ago
parent
commit
77f396d5cb
  1. 6
      helper/geojsonify.js
  2. 24
      test/unit/helper/geojsonify.js

6
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',

24
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',

Loading…
Cancel
Save